Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Can't get alternate headers working in Montezuma


  #1  
Old Mar 4, 2014, 08:37 PM
wintersb
 
4 posts · Jul 2010
My intent is to call a new header with certain pages.

I created a new page template called page-2.php and used it to create a few pages. This page template calls the sub-template header-2.php as in this line, according to instructions listed in many places.

<?php get_header('2'); ?>

It doesn't work. Instead it calls the default template. The header-2 template is so far (for testing purposes) a clone of the default header with only a same sized image changed.

I've tried tampering with the above line, and turning it into an include type command, but it only then returns me no header on my test pages. So at least I know the page-2.php works in calling the sub-template. But that's it.

Does montezuma support alternate headers?
  #2  
Old Mar 8, 2014, 05:20 AM
juggledad's Avatar
juggledad
 
23,551 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
if your subtemplate is 'header-2.php' then try using
HTML Code:
<?php get_header(header-2); ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 13, 2014, 06:39 PM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
It appears that with the latest release, get-header() still does not work with alternate headers. In the example above, with the sub template name of header-2.php, get-header('2'), get-header('header-2'), nor get-header(header-2) work, the original header.php still gets called.

However, one of the new functions for Release 1.2.2, bfa_get_template_part('header-2', ''), does work, so that can be used if an alternate header is needed.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!

Bookmarks

Tags
alternate, header, page, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Localhost - Montezuma options - not working. suwak Montezuma Theme 2 May 31, 2013 03:31 PM
dymamic headers not working with Atahalpa 3.6.7?? jan92 New Versions, & Updating 2 May 31, 2011 10:09 AM
[SOLVED] page align not working IE, but working in other browsers + headers not rotat mafgirl Atahualpa 3 Wordpress theme 12 Sep 21, 2010 12:38 PM
Multiple / Alternate Sidebars ??? Shepherd Jim Sidebars & Widgets 7 Jun 10, 2009 08:34 AM
alternate page templates willowtree Atahualpa 3 Wordpress theme 3 Apr 13, 2009 03:12 PM


All times are GMT -6. The time now is 05:04 PM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.