Jump to content
Sign in to follow this  
biosopher

The_Template_Map() In Class.template.php: Confused...

Recommended Posts

biosopher

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().


$template_map['header'] = array(

'hook' => 'pagelines_header',

'name' => __( 'Site Header', 'pagelines' ),

'markup' => 'content',

'sections' => array( 'PageLinesBranding','PLNavBar','PageLinesSecondNav')

);

My wild guess is that something is generated dynamically that calls these sections directly, but I can't determine where. Any ideas?

Share this post


Link to post
Share on other sites
Danny

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 ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Rob

$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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×