footer: only show a line when on home.php
-
Okay, I’ve checked the forums and the codex, and came up with something like this:
<?php if (is_home()) { ?>
<br /><a href="https://www.linktomysite.com">Link Text</a>
<?php } ?>
To put in the footer, so that this only shows up when the visitor is on the home page (which is home.php)
But… it’s not working.
I’m trying to make it so that MY link shows up in the footer only on that home page (it’s the web dev credit link) and not across the whole site…
I’ve searched the codex, read the conditional tags page, gone to PHP tutorial sites, and I’m lost…
What am I missing?
- The topic ‘footer: only show a line when on home.php’ is closed to new replies.