Site logo

Archived topic

Conditional buttons on navigation

3 replies · Started by Minerva on April 30, 2020

Viewing posts 1–4 of 4

Good morning, I have two questions: 1 How can I make a button from the main menu appear on the entire site except the home page? And the second is: what is the id class of the buttons of the main menu? I can't find it with the inspect tool. Thank you

Hi there,

1. give the Menu item a CSS Class. Example: not-home
Note: You can add more then one class to the menu item eg. nav-button not-home

then add this CSS:

.home .main-navigation li.not-home {
    display: none;
}

2. What exactly are you trying to do ?

Thank you, all resolved, the second question I have also solved!

Glad to hear that :)

This archived topic is closed to new replies.