Two custom headers, can't get it to work.
-
https://soulspringcoaching.com/
I’ve been working on this all afternoon. I need to use a slightly different header for one page in this site, the blog page which is named “springboard”. My new headers are named header-blog.php and header-default.php (which will be for all the other pages). I’ve tried different approaches recommended in my searches, some from the WP Codex pages. At first I kept getting syntax errors and finally that’s not happening, but the code is not doing its thing. This is what I have at the top of index.php:<?php /** * Template: Index.php * * @package WPFramework * @subpackage Template */ if ( is_page('springboard') ) : get_header('blog'); else : get_header('default'); endif; ?>
That code is being ignored and the original header.php is being used by the blog page. I got these final instructions here https://codex.www.ads-software.com/Function_Reference/get_header under Multi headers.
Please help!
- The topic ‘Two custom headers, can't get it to work.’ is closed to new replies.