• 0
Sign in to follow this  
Followers 0

Base theme - custom page - nav bar before branding

Question

Posted · Report post

I'd need to display the nav bar above the logo in a specific page only, so I guess I would have to create a custom page as 'alternative template' to the 'standard one' where I'll create a new page. According to documentation I did it but it's 'empty' of course. I'm not a coder, that's why I'm proud Pagelines' customer :))), so any help is much appreciated.

Share this post


Link to post
Share on other sites

10 answers to this question

  • 0

Posted · Report post

Not sure if this is the best way, but it worked for me: 1. navigate via FTP to the following folder: wp-contentthemespagelinessectionsnav 2. copy the entire "Nav" folder & paste it inside the "pagelines-sections" folder: (wp-contentpluginspagelines-sections) 3. inside the newly pasted folder, open the "section.php" file 4. On line 9. change "Cloning: false" to "Cloning: true" then save 5. on your site, go to pagelines store via dashboard=>PageLines=>Store and click "Refresh Store" 6. Go to the Template Setup, select "Header" then on the active "Navigation" section, click "Options" then "Clone" 7. Drag the new "Navigation #2" above the "Branding" section. make sure it saves. 8. On "Navigation #2" click "Options" then "Hide this by default." make sure it saves. 9. now go to the page where you want the nav above the logo & click "Edit Page" 10. in the PageLines Meta Settings, click "Page Setup" 11. Put a check next to "Hide Navigation" and another check next to "Show Navigation #2" 12. Click "Save Meta Settings"

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks a lot [b]mrfent[/b], it works flawless.:) Do you think I'll keep such customization where I would upgrade to Pagelines future releases?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes, your custom nav folder will not be touched

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

thanks Simon. I see it's a 'clone'... that means it uses the styles of the 'original' one by default. Is there a way to give it different styles?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi, In order to add a different style, you would need to open your custom Nav section.php and change all the classes and Id's. Then in color.less change the class and Id names to the ones you changed in section.php.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Danny, I scrolled section.php but I'm getting some difficulty to target classes and id's references. (i'm not smart with codes...sorry) Can you indicate to me the line numbers of classes and id's I have to change? Thank you.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

It should be line 40.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Catrina. yes it would be line 40 (main_nav_container) and maybe also at line 43 (main-nav) I'll add "_2" to both- Accordingly I'd change 'main-nav' in color.less. More in general I notice the whole styling package of nav bar comes from style.css and only partially comes from color.less. So I'll try to copy and paste such styling section from style.css (pagelines) to style.css (base theme) in order to keep such customization 'safe' in case of pagelines future upgrades. For completeness I'll test this task and where I'll get positive results I'll update this post in order to be useful to other users.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for this, we appreciate it!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I did not find a way to make the second navbar look different than the one. This is the line 40 of section.php customized by adding "_2" to item I presume would be the correct classes. (maybe I wrong something...) printf('

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  
Followers 0