简体   繁体   中英

how to add a a terms and conditions page to the footer in wordpress?

I currently am working on a site in wordpress and am trying to add at and cs page but I diont want it to show in the nav, I would like it to only be in the footer.

How can I do this?

Open up the footer.php for your theme ( /wp-content/themes/YOURTHEME/footer.php ), scroll down to the part of the file that echoes out the footer links, and you can append it there. (if you don't have a footer.php , try looking near the bottom of page.php )

Note that this is a dirty quick hack, there's probably a more semantic way to get this done.

Open footer.php in your theme.

add this line and change match to your TOS page url

<a href="url/to/term-and-condition.html">TOS</a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM