开发者

how to add a PHP page link to my footer in wordpress

开发者 https://www.devze.com 2023-03-29 12:09 出处:网络
I have created a custom PHP page name privicy pollicy with name privacy.php. How would i link the pa开发者_高级运维ge in footer so that when some1 click on privacy link the page open.

I have created a custom PHP page name privicy pollicy with name privacy.php. How would i link the pa开发者_高级运维ge in footer so that when some1 click on privacy link the page open. I have call the header and footer in this page. How to do this. Thanks


In the wp-content/themes/<your_theme> directory for your WordPress install, there should be a file called footer.php. This is the file that generates your footer output.

To edit this file, open your WordPress dashboard and click on the Appearances tab in the navigation bar. Under "Appearances", there will be a link called Editor that will open the theme editor for your current theme. Once in the editor, select Footer (footer.php) in the list of templates that appears on the right hand side of the editor.

You can modify the HTML for your footer here, and add a link to your privacy page.


<a href="privacy.php">Privacy policy</a>


You have to put the link in the footer.php of your wordpress theme. You can edit it using the default theme editor


That is completely dependent upon your theme. If your theme doesn't support editing the footer text, you just have to edit your theme's footer.php file and add your information there.

The file is located in a place similar to this:

/wordpress/wp-content/themes/<theme>/footer.php


Go To Appearance -> Editor -> footer.php and edit it Simple Well You can do it from cpanel also public_html -> wordpress -> wp content -> themes -> -> footer.php

0

精彩评论

暂无评论...
验证码 换一张
取 消