WordPress.org

Support

Support » Themes and Templates » current_page_item – Can't make it work

current_page_item – Can't make it work

Viewing 5 replies - 1 through 5 (of 5 total)
  • there is a more specific style, that still overwrites your ‘current_page_item’:

    .navigator ul li a:link, .navigator ul li a:visited
    {
    color: #732e26;
    ......

    change your line to:

    .navigator ul li.current_page_item a {
    	color: black;
    	}

    Thank you. I was a bit fuzzy on how the current_page_item selector fit into the others.

    I’m having somewhat of a related problem with my upcoming site here. However, my issue is that the color font for the current menu item doesn’t change from black to white based on my code below. I’ve spent 2 whole days trying to figure it out with no success. I would be eternally grateful if someone could post a solution. Thank you!
    ———-

    [CSS code moderated according to Forum Rules – a link to your site is enough]

    you stylesheet does not have a style for the .current_page_item

    add:

    .navigator ul li.current_page_item a { color: #fff; }

    It worked! Thank you so much for your quick reply and great suggestion!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘current_page_item – Can't make it work’ is closed to new replies.
Skip to toolbar