Jump to content


Photo
- - - - -

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


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1 biosopher

biosopher

    Member

  • Members
  • 14 posts

Posted 25 October 2012 - 05:13 AM

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

Please Login or Register to see this Hidden Content


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

#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 17580 posts

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 ?

#3 biosopher

biosopher

    Member

  • Members
  • 14 posts

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:

Please Login or Register to see this Hidden Content

.

#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

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.