Archived

This topic is now archived and is closed to further replies.

  • 0

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

Question

Posted · Report post

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

3 answers to this question

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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 ?

Share this post


Link to post
Share on other sites

Posted · Report post

I need to float the NavBar to the right of the logo image in the header...as I've now done here: http://www.infidian.com.

Share this post


Link to post
Share on other sites