Jump to content

Archived

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

kellid

Hide fixed nav bar on certain pages

Recommended Posts

kellid

Hi all,

 

My goal is to remove the fixed nav bar on all pages except the home page.  This is the code I was using and it works in firebug but not in custom css...

 

.page-id-77.section-navi .navi-wrap {  

display:none;

}

 

Can you tell me what I'm doing wrong? 

 

Thanks!

 

Kelli

Share this post


Link to post
Share on other sites
Danny

Hi Kelli,

 

The code should work, but will only work on the page that has an id of 77, if you want to hide something on all pages except the home you will want to try this:

 

.section-navi { display: none; }

.home .section-navi { display: block !important; }


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
kellid

Hi Danny!

 

That's it!  Thank you!  Wow, you are the best. 

 

Just in case someone else comes across this post.  The above worked for me when I added the bolded to the code that Danny provided.  

 

.section-navi { display: none; }

.home .section-navi { display: block !important; }

 

Share this post


Link to post
Share on other sites
Danny

Ah yeah, my bad! I've fixed the code in my post. Thanks for pointing that out.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • decmech
      By decmech+
      Hey Guys,
      Having some issues with the dropdowns for the Navi in DMS. For some reason I can't have any more than 2 levels in the dropdown. The cursor is hovering over RPAS Training (and the arrow to indicate more is visible) but no matter what browsers, it never shows up. Also inspecting the HTML shows that the additional fields are not there.
      I have inspected the PHP and cannot see anything that is limiting the number of levels. Any assistance to get the additional levels showing would be great.

    • sophia@wearrose.com
      By [email protected]+
      Hi im using the Journey template and they automatically use a line to separate the sections. I want to remove it. I guess its a border but I cant figure out how to get rid of it for the life of me. HELP?! 
       
       

    • jeomiland
      By jeomiland+
      Hi guys. Just now trying out Platform 5. I like the reletive simplcity of the new interface but there are things I'm used to in DMS that I'm not seeing yet in 5. Is there a good manual, documentation, video series about some of the basics?
      In particular, I've got a simple navigation menu, created the standard way in WP menus section with several top level parents, then 3-4 children menu items below a couple parent items. Have them moved to the right to create the standard parent-child relationship but all I see on the page is the parent level items - no dropdown!. So I changed themes from Platform5 to the standard 2015 default theme and now I see absolutely no menu at top, except for the mobile (hamburger?) icon.
      In DMS, one had Navi and Navbar, etc sections and each would work differently and give different results. How do you work the menu system in 5? And how get different results ?
      thanks
    • Kedark
      By Kedark+
      Hi,
      how to set the menu navi:
      - The background color when you expand a submenu,
      - Background color on mouseover,
      - The color of the text,
      - Width of submenu
      Please help, nowhere in the forum I have not found the answers to these questions ..
      Regards
      RKA
       
    • triggerfish
      By triggerfish+
       I have setup the Navi (content width) to show the burger icon for my menu system (desk and mobile).
      It works great..displays only the Burger..BUT ONLY when on the Default Menu (which is not a real menu, but some random selection of pages).
      As soon as I select the MAIN Menu in the Navi settings it suddenly displays all of the menu items...which I don't want.
      The domain is not pointed yet..it is at 162.219.161.131
      If you know how to trick your computer the website is here... http://phw-homes.com/home-dms-2


×