WordPress.org

Ready to get started?Download WordPress

Forums

current_page_item - Can't make it work (6 posts)

  1. robahas
    Member
    Posted 3 years ago #

    Hi,

    I've applied the following css style and I get no response.

    \
    .current_page_item a {
    color: black;
    }
    \

    I used this on a different site and it worked! Any thoughts? Here's the site: http://intuito.biz/rooted/

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    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;
    	}
  3. robahas
    Member
    Posted 3 years ago #

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

  4. Greek2U
    Member
    Posted 2 years ago #

    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]

  5. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    you stylesheet does not have a style for the .current_page_item

    add:

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

  6. Greek2U
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags