• Resolved Peter Hardy-vanDoorn

    (@petervandoorn)


    I have a couple of custom taxonomies that are properly registered to the “product” post type. Your code does not allow their archives to display the shop sidebar.

    As far as I can see, it’s your function woostify_sidebar_class() which is causing the problem as its check for a Woocommerce page is

    if ( class_exists( 'woocommerce' ) && ( is_shop() || is_product_category() || is_product_tag() ) )

    It would be more helpful if the check was

    if ( class_exists( 'woocommerce' ) && ( is_shop() || is_tax( get_object_taxonomies( 'product' ) ) ) )

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Dylan Ngo – Woostify

    (@duongancol)

    Hi Peter!
    I understand your issue.
    Can you help me text the code below?
    if ( class_exists( 'woocommerce' ) && ( is_shop() || is_product_taxonomy() ) )

    Thread Starter Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi.

    Yes, that works perfectly too (and is much neater that my solution!!)

    Thanks for quick response.

    Peter

    Theme Author Dylan Ngo – Woostify

    (@duongancol)

    Thank you for the confirmation!
    We will add this code to the next version.

    Have a nice weekend!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sidebars on custom product taxonomy archives’ is closed to new replies.