Menu color Layouts

Hi there,

I created a lay-out for the follow up pages. On the homepage (http://dev.managementinstituut.nl/wordpress/) the menu color is and must be white, however on the follow up page (created with a layout: http://dev.managementinstituut.nl/wordpress/?page_id=80) the menu color should be dark blue (it is automatically white at the moment)

Is there a code i can use to change this?
Thanks in advance!

Comments

  • Hi,

    but what kind of code you are looking for? To change menu items color on all inner pages, except home?
  • Jap. That is what i am looking for. (including the link color/hove-over color).

    As you can see the menu tekst is now white on all pages. The homepage should remain white and all the other pages should have a different color. ( as you can see on the other pages, the menu is not visible because the text is white)
  • So to do this, you need to use the following css:
    #Top_bar:not(.home) .menu > li > a span:not(.description) { color: #000 !important; }
    #Top_bar:not(.home) .menu > li > a:hover span:not(.description) { color: #E2E2E2 !important; }
  • Ok. But this changes the color on the homepage as well... Whereas the homepage color must remain white, the others must have the different color
  • Sorry, you're right. We did a mistake. Instead of above css, you should use:
    body:not(.home) #Top_bar .menu > li > a span:not(.description) { color: #000 !important; }
    body:not(.home) #Top_bar:not .menu > li > a:hover span:not(.description) { color: #FFF !important; }
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.