Juggledad,
A while back, I posted:.
Quote:
Originally Posted by jerryc
I need to change my headers. I just tried the get_header, just like the documentation says, and it didn't work for me.
|
You replied:
Quote:
Originally Posted by juggledad
There is a problem with subtemplates. if you notice they don't get a '.php' extension' This part of the code is being rewritten.
|
So, I've been making do with one header and one footer for now while working on other stuff in the meantime.
Recently, you posted:
Quote:
Originally Posted by juggledad
to make a copy of the header (or footer) virtual template do the following
1) go to mto->Sub Templates->+ Add sub template
2) in the 'Template name' field add a name like 'header-custom'. and press the 'ADD Sub Template button.
3) go to mto->Sub Templates->header.php (or footer.php) do a select all and copy
4) go to mto->Sub Templates->header-custom and paste teh code and press 'SAVE Changes'
now where ever you are calling the header (or footer) use the new templage name like
HTML Code:
<?php get_header('header-custom'); ?>
|
So, I tried it again, this time, using your suggestion of:
HTML Code:
<?php get_header('header-custom'); ?>
instead of how the documentation reads:
HTML Code:
<?php get_header('custom'); ?>
Neither way worked for me. I tried it at the top of my template, and it still gave me the default header. Just for kicks, I copied and pasted the identical code at the bottom of my template, and it gave me nothing at all.
How did you get it to work? What am I missing?
Thanks,
Jerry
P.S. Making a new subtemplate by selecting the option to copy an existing on produced an empty subtemplate for me. Your suggestion of copying and pasting did work to make the file, it just didn't display anything.