Parent menu color - by queenb123 - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 7 years, 7 months ago ago by Olga Barlow

  • Avatar: queenb123
    queenb123
    Participant
    April 2, 2017 at 13:32

    hello, in a category with children, how do i change the colour of the parent category if it has children…

    dd

    i added this but didnt work:

    .tabs .accordion-title.opened-parent::after{
    color: #d4af37 !important;
    }

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 3, 2017 at 11:41

    Hello,

    Try this one

    .widget_product_categories.sidebar-widget .cat-parent a {
        color: #d7b546;
    }

    Regards

    Avatar: queenb123
    queenb123
    Participant
    April 3, 2017 at 12:24

    Hi,

    Thanks but that changes ALL he parent category colour – what i need is the parent colour to change and stay changes when clicked like your demo here:

    deeee

    hope i have explained it ok.

    Many thanks.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 3, 2017 at 18:49

    Hello,

    Oh, I see, you want to change color for the active category. Then use the following code

    .widget_product_categories.sidebar-widget ul li.current-cat > a {
        color: #d4af37;
    }

    Regards

    Avatar: queenb123
    queenb123
    Participant
    April 3, 2017 at 21:11

    Thank you!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 4, 2017 at 09:09

    You are welcome!

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.