Jump to content


Photo
- - - - -

Child Theme PageLinesNav


  • Please log in to reply
3 replies to this topic

#1 888voip

888voip

    Newbie

  • Members
  • 8 posts

Posted 29 March 2011 - 05:09 PM

Hello,

I am attempting to Child Theme PageLines Navigation. However it does not seem to be working for me. I have been able to successfully replicate the pull quote example so I am somewhat familiar with basic child theme construction. The Pagelines Nav is a bit more complicated though as it is within its own folder and relies on sub files. Here is what I have done so far...

Copied the entire nav folder into platformbase/sections to create platformbase/sections/nav.

Within that folder I have edited section.nav.php and renamed it to section.mgeNav.php.

Here is a snippet of code I have changed:

Please Login or Register to see this Hidden Content


As you can see I changed the class, the name and ID to my new section type. I have also included within my base theme functions.php the following line:

Please Login or Register to see this Hidden Content


However no navigation "MGE Navigation" shows up in applicable sections.

Is there an additional step when creating a child theme that uses a subfolder?

Thank you.

#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 29 March 2011 - 06:38 PM

try: `pagelines_register_section('mgeNav', 'mgeNav', null, array('child' => true));`

#3 888voip

888voip

    Newbie

  • Members
  • 8 posts

Posted 29 March 2011 - 08:14 PM

Worked as long as I kept the section in the root sections folder. When using child themes is this always the case, you cannot use subfolders?

#4 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 30 March 2011 - 12:38 PM

Hey John, Not always... But, if you've found that it doesn't work with the copied folder structure, then you can try it in the root.