Can someone explain this?
If I comment out these lines in the_template_map(), PageLinesBranding, PLNavBar, and PageLinesSecondNav are still being displayed. BUT if you search all files for those sections, they are only declared in the_template_map().
My wild guess is that something is generated dynamically that calls these sections directly, but I can't determine where. Any ideas?
The_Template_Map() In Class.template.php: Confused...
Started by
biosopher
, Oct 25 2012 05:13 AM
3 replies to this topic
#1
Posted 25 October 2012 - 05:13 AM
#2
Posted 25 October 2012 - 07:56 AM
Hi,
PHP isn't my forte so I am not entirely sure. However, editing the core files is not recommended, why are you making such changes ?
PHP isn't my forte so I am not entirely sure. However, editing the core files is not recommended, why are you making such changes ?
#3
Posted 25 October 2012 - 03:54 PM
I need to float the NavBar to the right of the logo image in the header...as I've now done here: .
#4
Posted 26 October 2012 - 04:14 AM
$template_map['header'] = array(
'hook' => 'pagelines_header',
'name' => __( 'Site Header', 'pagelines' ),
'markup' => 'content',
'sections' => array( 'PageLinesBranding','PLNavBar','PageLinesSecondNav')
);
If you read through it, this is the array that creates the default header, containing the Branding, Navbar and secondary nav, which are default sections.
This is core code and should not be amended. Changes are not supported either.











