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


    Please help.
    I got a css code from the moderator Devin at this thread. (Purchase code hidden if logged out)(Purchase code hidden if logged out) -black/

    the css is:
    #top .main_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



    Hey Andri,

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

    #top.home .main_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.



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

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