Support » Plugin: WooCommerce » highlight category and subcategory in the WooCommerce menu

  • Resolved datibus

    (@datibus)



    Hi guys,

    When I’m viewing the product page or category page, I’d like to be able to highlight the point in the category menu.

    I have seen that the parent category has a “current” style and that allows us to style it, but the current subcategory does not have it so I can not give it a style.

    Is there a way to build the categories menu in which the selected subcategory has a special class within all the subcategories to be able to give it a different style?

    Something like this:
    ……
    <li class=”cat-item cat-item-15497 current-cat cat-parent”>SONIDO
    <ul class=’children’>
    <li class=”cat-item cat-item-15543 CURRENT-SUBCAT”>CÁMARA
    <li class=”cat-item cat-item-15513″>RADIO
    …….

    Thank you very much in advance!

    Kind regards,
    Raquel.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Andrew

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    That is something your theme would handle, not WooCommerce, so you would be best off talking to your theme developer to ask about that being implemented.

    Have a great one!

Viewing 1 replies (of 1 total)
  • The topic ‘highlight category and subcategory in the WooCommerce menu’ is closed to new replies.