The_Template_Map() In Class.template.php: Confused...
Posted 25 October 2012 - 05:13 AM
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?
Posted 25 October 2012 - 07:56 AM
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 ?
Posted 25 October 2012 - 03:54 PM
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.