New header using get_header( $name); not working
-
Hi there,
I’ve been all over the Internet and asked a programmer I know who is fairly familiar with WordPress, and I still haven’t found a solution. After trying several ideas, I may have thoroughly messed up my code (in a way that renders all code ineffective without messing up the visitor’s view).Working on jonidaniels.lymelight-webs.com/blog
I have header-blog.php that I’d like to put on just one template, called blog-page.php and named “Power-Tools.” “Power-Tools” does show up in the page template dropdown now. I created a page for the blog and gave it this template, and I went to Settings > Reading to make this page the posts page.
At the same time, I tried attaching header-blog.php to blog-page.php but this is where I’m having difficulty. The template for the blog appears to be calling header.php no matter what I try:
get_header( $blog );
get_header(‘blog’);
include(TEMPLATEPATH . ‘/header-blog.php’;
get_header( $name = blog );
include_once($_SERVER[“DOCUMENT_ROOT”] . “/wp-content/themes/jonidaniels/header-blog.php”);I didn’t expect some of these to work, but I was desperate ?? Again, it’s possible that by now, after editing every page involved, I’ve farg’d up the code enough that every attempt is useless; but perhaps someone can point it out because I’ve been staring at this for so long. I’ll copy any necessary code into this post for you to view – just let me know.
Really though that get_header( $blog ); would work, since it’s in the codex… Thanks in advance!!
- The topic ‘New header using get_header( $name); not working’ is closed to new replies.