Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1241885

    Hallo,
    for the woocommerce product categories’ menu in the left sidebar I want to change the color of the ‘parent’ categories, to have the layout clearer.
    I tried with

    li.cat-parent {
    font-weight:700;
    text-decoration: underline;
    color: black!important;
    }

    in the enfold Child style.css, and what happens is that:
    font-weight changes to 700
    text-decoration changes to underline
    but: color only changes the number’s (count’s) color after the categories’ name.

    How may I change that?

    Thank you,
    Silke

    #1242412

    Hi Silke,

    If you want to target the numbers then you can use this CSS:

    ul.product-categories span.count {
      color: red;
    }

    Best regards,
    Rikard

    #1242417

    Hi,
    thank you! Sorry, I think this was a misunderstanding: I do not want to target the numbers, but I want the ‘parents’ text to be in black. But what happens is that the text does not react to this, but only the numbers do:

    li.cat-parent {
    color: black!important;
    }

    How should I adress the parent menu entry to change it to black?

    Thank you!
    Silke

    #1242631

    Hi,

    Adjust your css to this:

    li.cat-parent a{
    font-weight:700;
    text-decoration: underline;
    color: black!important;
    }

    Best regards,
    Jordan Shannon

    #1242771

    Dear Jordan,
    thank you, I had to add an extra css for the children, too, now it does work – thank you for your help!
    Silke

    li.cat-parent a{
    font-weight:700;
    text-decoration: underline;
    color: black!important;
    }
    li.cat-parent .children a{
    font-weight:200!important;
    color: #719430!important;
    }

    #1242931

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change color in left side bar product categories menu’ is closed to new replies.