Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #161505

    Hello,

    Please help.
    I got a css code from the moderator Devin at this thread.

    http://www.kriesi.at/support/topic/how-to-make-the-font-color-in-navigation-menu-become-black/

    the css is:
    #top .main_menu ul.menu li a {

    color: black;

    }

    I want to apply it on homepage only.
    How to modify the css then?

    Please, I really need help. Thanks

    Regards,
    Andri

    #161531

    Hey Andri,

    You can use the WordPress body class to keep the css to the home page only. Eg:

    
    #top.home .main_menu ul.menu li a {
      color: black;
    }

    The “home” class is added on to only the home page of the site and its already in the top ID so the combination will mean the css only effects that home class selector.

    Regards,

    Devin

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Apply certain CSS to homepage only’ is closed to new replies.