Forums

Twenty Ten - change txt color of current page (5 posts)

  1. jk_dance
    Member
    Posted 11 months ago #

    Hello there,

    I have been able to change all the colors in the navigation bar but i just can't seem to find a way to change the color of the current page you are one... it stays black and since the 'rollover state' of the background is also black the text is not visible when you rollover it. It should be white just like the rest. Where can i change this?

    Site is: http://www.royalgold.nl

    Thanks in advanced

  2. alchymyth
    The Sweeper
    Posted 11 months ago #

    more important than the css adaptation:
    twenty ten will be overwritten with the next upgrade of your wordpress version; all modifications will be lost.
    to avoid this, create a child theme: http://codex.wordpress.org/Child_Themes

    now to the css:

    edit style.css, and find:

    #access ul li.current_page_item > a,
    #access ul li.current-menu-ancestor > a,
    #access ul li.current-menu-item > a,
    #access ul li.current-menu-parent > a {
    	color: #000;
    }

    make a copy of these lines, paste them back and add :hover to each line:

    #access ul li.current_page_item > a:hover,
    #access ul li.current-menu-ancestor > a:hover,
    #access ul li.current-menu-item > a:hover,
    #access ul li.current-menu-parent > a:hover {
    	color: #fff;
    }

    and do the same with the block of styles that follows.

  3. jk_dance
    Member
    Posted 11 months ago #

    So thats what a child theme is for. I already read that a couple of times but didn't think i'd need that. Thank you for this information ! And also for the answer to my question. It worked perfectly.

    But i just found something else. The text color now stays white when i move over it wich is good but when i go to the submenu it does turn black again... i would search myself, but with this part i have no clue where to start :S.

  4. alchymyth
    The Sweeper
    Posted 11 months ago #

    but when i go to the submenu it does turn black again...

    i can't reproduce this -
    on all hover states, i get black background and white text.

    try to clear the browser cache by pressing 'CTRL F5'

  5. jk_dance
    Member
    Posted 11 months ago #

    OMG ! Sorry for even asking.

    Another problem solved. Thanks. Can i give u respects on this forum, hahaha.

Reply

You must log in to post.

About this Topic