is_home works….is_front_page doesn't
-
I’m sure I’m missing something obvious here, I just need to call a custom header.php file for a static home page. I’m able to call it for the blog page (News) and it works, when I switch to “is_front_page” nothing happens.
I’ve tried the reset query solution to no effect. Here’s the code I’m using:
if (is_front_page()) : get_header('home'); else : get_header(); endif;
I’ve never had problems with this before, so I’m wondering what I’m missing. I’ve even tried calling the specific page, is_page(’32’) with no luck. The only page I can get my custom header on is the blog page.
Thanks for any help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘is_home works….is_front_page doesn't’ is closed to new replies.