Change Category Widget title with if else statements

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

  • Avatar: thisisbolo
    thisisbolo
    Participant
    December 22, 2017 at 21:39

    Is there a way to change the title of the category widget based on the product category being viewed?

    i.e on product category taxonomy
    if
    you’re viewing a category with the term ‘Cookies’ change the widget category title to ‘Choose a Cookie Type’
    else if you’re viewing a category with the term ‘Breads’ change the widget category title to ‘Type of Bread’
    else if it isn’t any specified category than it says ‘Categories’

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 23, 2017 at 11:25

    Hello,

    Product Categories is WooCommerce default widget and unfortunately, it does not have such option. You may contact WC plugin support and ask if they have any way to implement this thing because we theme authors can’t make any changes in default WooCommerce plugin widgets.

    Regards

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

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

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