Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS changing the colour on individual nav item in wordpress so it shows on homepage

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #294634
    emmapap
    Participant

    hi
    I am trying to change the colour of an individual nav item in wordpress from black to gold (the rest of the nav items are to be black)
    this is the css code I am using

    this worked

    #menu-item-3576 a {
    color: gold;
    }

    but the colour change isn’t for some reason showing on the homepage of the site but it is showing on all the other pages of the site – what would that be? for example you cant see it on http://materialiseinteriors.com/ but you can see it on http://materialiseinteriors.com/welcome/ Do you know why that would be?

    #294654
    uxfed
    Participant

    Check your styles. The span inside the a tags also has colour styles applied. Either change the span instead or (what I would do) set the span to color: inherit.

    #294660
    emmapap
    Participant

    how do you set the span colour to inherit?

    #294661
    Paulie_D
    Member
    #menu-item-3576 a {
    color: gold;
    }
    
    #menu-item-3576 a span {
    color: gold;
    }
    
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.