Widget Logic
Need to show a widget on a product page inside a product category in woocommerce (7 posts)

  1. muzzymoo1978
    Posted 1 year ago #

    I need to show a particular widget only under a category and also in it's subcategories as well as in the product page which is under those categories. I'm currently using
    is_tax( 'product_cat', 'binoculars')
    But it's only showing the widget on the category archives page not the subcategories or the product page that belongs to that product category.

    I'm using woocommerce.

    I've search everywhere, used the conditional tags ref and cannot find a solution!
    PLEASE HELP, Thanks in advance


  2. alanft
    Plugin Author

    Posted 1 year ago #

    Poking around re woo commerce I've seen some suggestion that (if you are still persisting with WL) you might fix some problems with a 'late' Load Logic option

    The Load Logic menu is at the foot of the Widget admin page as seen here

    And a brief outline of what it does is here

    Try the latest wp_head option (and check wp_head is used in your theme!)

  3. alanft
    Plugin Author

    Posted 1 year ago #

    The latest development version hereā€¦


    has a new 'Load logic' option of 'when query variables set' which I believe will fix many woocommerce woes

  4. Watch Teller
    Posted 1 year ago #

    Is it Development Version (svn)????

  5. Watch Teller
    Posted 1 year ago #

    Tried Development Version 0.5.8. Not Luck

    is_page( 'shop' ) && is_woocommerce() && !is_shop() AND Is_woocommerce() && !is_shop() (want to not to show in shop page but shown in all product category and tag page.

  6. alanft
    Plugin Author

    Posted 1 year ago #

    That's the one. You may need to set the "Load logic" setting to the "after query variables set" (parse_query) option.

  7. Watch Teller
    Posted 1 year ago #

    Tried all option.

    I still cannot to make it to hide widget in WC Shop Page and shown in Product Category Page?

    Resources reference: http://docs.woothemes.com/document/conditional-tags/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.