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

2019-03-07 09:56发布

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

5条回答
Ridiculous、
2楼-- · 2019-03-07 10:35

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

查看更多
欢心
3楼-- · 2019-03-07 10:39

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.

查看更多
女痞
4楼-- · 2019-03-07 10:41

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

查看更多
我命由我不由天
5楼-- · 2019-03-07 10:44

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
查看更多
何必那么认真
6楼-- · 2019-03-07 10:47
<a href="privacy.php">Privacy policy</a>
查看更多
登录 后发表回答