is_front_page works in header, not footer
-
I am trying to vary the formatting of my pages based on whether it is the front/home page. I am using an IF statement with the is_front_page() function to determine which image to show.
This is working fine in header.php, but footer.php will never return TRUE for the is_front_page function. Somehow, the value for is_front_page() is being changed between the header and footer includes.
Does anyone know what might be causing this? I’m a WordPress newbie, and inherited this site from someone else, so ANY help/guidance you can give will be greatly appreciated.
Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘is_front_page works in header, not footer’ is closed to new replies.