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

2019-03-07 10:27发布

问题:

I have created a custom PHP page name privicy pollicy with name privacy.php. How would i link the page 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

回答1:

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.



回答2:

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


回答3:

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



回答4:

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


回答5:

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