Jump to content
artemesia66

Best Way To Customize The Nav Classic Section?

Recommended Posts

artemesia66    0
artemesia66

I have a very small change to make: changing the main_nav class to main_nav_anythingelse. The existing name is adding residual styling to Ubermenu and causing it to scale improperly when the window gets narrow (smartphone), so it needs to be changed.

I'm already using a child theme (Base Theme), so I assume that the altered code goes somewhere there, but I'm not sure where, or if there's a better way to do it.

I should also say, that when I alter it right in the nav/section.php file, it does what I want it to do, but I obviously don't want to be making that change right in the theme files.

Thanks,

jt

Share this post


Link to post
Share on other sites
catrina    103
catrina

If you're working with the menu, you'd need to add the section.php file for the nav to the base theme and edit the file there.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
artemesia66    0
artemesia66

Thanks, Catrina. I'm a bit unsure how to do that. Are there instructions you could point me to?

Do I copy the whole nav section folder to the base theme sections folder or just the php file? Or are you talking about copying the section.php into something else?

cheers,

jt

Share this post


Link to post
Share on other sites
evan    0
evan

aremesia66 -

There are a couple ways you can do it.

For simple modifications, you can create a template.SECTIONNAME.php (where SECTIONNAME is the folder name of the section) file in the root of your child theme. This file will override the section_template of the section's class.

This is a quick and handy way to override section output that also allows you access to the section class's properties and methods.

Or like Catrina said, you can copy the section's section.php file into your child theme like this: childthemeroot/sections/sectionfoldername/section.php. This will override the section's section.php file (if you need to customize more there than just the template) with your customized one, but still load all the other section files like LESS/CSS or other images.

For more advanced modifications, you can just copy the whole section from core, into your child theme's sections folder. If you leave the core section you are copying activated, it will load that section's LESS/CSS even when you are overriding it with your section, so assuming you have the pagelines sections plugin installed, you can go into the Store under Pagelines, go to sections, and disable it under core so that just your custom one is activated. Then you can customize it however you want! Turn it into something totally new if you want.

Hope that helps!

Share this post


Link to post
Share on other sites
artemesia66    0
artemesia66

Thanks to both of you. I ended up using the second method from Evan's list. For some reason, using the template.nav.php threw an error.--most likely me understanding just enough php to be dangerous. In any case, I now understand the principals better as well as solving my problem.

Share this post


Link to post
Share on other sites
mackenzie    12
mackenzie

The topic was marked as resolved.


Mackenzie - PageLines Help Desk

The Centsible Family - Writer, Photographer and Coffee Addict

---------------------------------------------------

Kindly search this forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

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


  • Similar Content

    • khat
      By khat+
      I think I may have installed pagelines pro incorrectly, and then used features incorrectly. I installed first platforms framework theme and then the child, thinking I could do setup for child later. I tried to set up a background image, and tried custom css feature in pagelines dashboard. I had mistakes in my css, and just thought that if I deleted the info in the css custom feature in pagelines dashboard that the new information would overwrite the old info. The background image didn't respond at all, probably because I didn't have the child directory renamed. I then tried to use the LSS plugin to create css and added more css, possibly, somewhere -sigh-. I never did change the background image and get it placed properly. I used a workaround and in nested containers I placed a background image which worked well enough, so I moved on to try to create my nav bar/ menu bar. When I go to the Menus panel, there is NO area where I can place a menu on a page. I have read and reread and re- re- reread the instructions for placing a menu. I've used the pagelines editor to place a menu, however only HOME shows up. I've been at this for many hours. I've since uninstalled all of my pagelines items and reinstalled, thinking that it would restore all my changes to default, but no, it is still all there, with all my unresolved issues. I am completely at a loss as to what to do next.
    • Jarek
      By Jarek+
      How to make the Impulse menu sticky?
      Here is a site that seems like it is doing just that: http://www.manhattanperiodontist.com/
      Here is the site I am working on: http://boeriu.digitalvector.com/ 
      I have no problem showing the menu at the bottom, but when scrolling up it does not stick.  I tried to add Nav Pro menu but when I do that, it just shows on top and no matter what I try is not working as I want it to.
      Any suggestions?
    • Dave
      By Dave+
      1) Toggle menu on mobile devices does not work properly, combination Chrome 56.0.2924.87 with Android 6.0.1

      2) Mobile / Default Menu > Set the primary/default navigation for your site. This will be used in the pop out mobile menu and as the default in navigation sections. Does not work.
    • David
      By David+
      We are building a long-page scrolling site with Pagelines 5. Our menu is made with # links that go to a container's unique ID, e.g. container_ux7al6g
      This works, but it doesn't look great in the menu. Is it possible to assign a 'nice' # link, e.g. /#solutions ? 
      We used to do this in the DMS2 platform through a workaround, but that doesn't seem to be possible now. 
      Any suggestions? 
    • SaschaM
      By SaschaM+
      hi
      i wanted to point out at this time, that i am very very very happy with platform 5. (before i used DMS and others) as some ppl talking here some things are not working, i can say the opposite working on my Web:
      1. UberMenu
      is running fine, without shortcodes or "tricks" necessary - it runs out of the box with no problems in a few clicks configured. also further ubermenu plugins 100%
      2. Shift Nav
      As a further extension of UberMenu - also runs fine out of the box with a few clicks. also combine with ubermenu no problem (Ubermenu for normal nav, shift nav for mobile)
      3. https / SSL

      I user commodo instant ssl and everything runs fine (10 minutes installation) - no mixed content errors nothing everything very smooth :-). Google SERPS have been updated to https URLS wihtin 1 day(!)
      4. MaxCDN
      I use MaxCDN for sitespeed as i implemented also video backgrounds. it runs perfect with wp supercache
      5. Nginx
      I also run nginx on my webspace, also with that there a no problems with platform 5. I also use nginx streaming for video files, works perfect.
      For all points there a no functions codes necessary or implement shortcodes - it runs out of the box and makes it easy for everybody, whos a little firm in technical matters. Some guys here in the forum make it really complicated :-)
      I am working with pagelines around 5 years now, and platform 5 / framework 5 is the best tool ever
      BUT i am missing to configure site headlines h1-hx as in DMS possible easy way. It was a great way to make seo sitestructure. now there are lots of empty headlines or headlines or jumped over. in seo this causes errors in sites structure. this should be reworked.
      if you have any questions on pl5 with 1.-5. just ask me here....
      regs, 
      Sascha Mühlen
       
       
       
×