• Hi,

    I have several filters on my product category page, that disappear (except the default WooCommerce price range) after clicking on one of them. It results in a filtered page, with only the WooCommerce price range filter and no YITH custom Ajax filters. I’m using the latest versions of the YITH and WooCommerce plugins.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,

    you must use the same sidebar for shop page and for other WooCommerce pages because we need to use the shop page base url in order to show filtered results abnd for this reason you must use the sidebar in shop page.

    Please, try this and let me know.
    Have a nice day
    YITH

    Thread Starter Tomjesch

    (@tomjesch)

    The YITH filters are automatically displayed on my product category page and I cannot select or deselect let’s say the URL is https://myshop.com/product-category/stuff. When I select one of the displayed filters, the product overview is filtered correctly according to the selected filter. The problem lies in that all filters are “removed” except for the WooCommerce price range selector (standard WooCommerce widget) and there should be additional filter options.

    The correct sidebar is selected in my theme (Avada) options and it is working because the entire sidebar contains the WooCommerce price range selector and several YITH filters. The standard WooCommerce price range filter is the only filter still being displayed after filtering. All other YITH generated filters are set to display:none.

    Thread Starter Tomjesch

    (@tomjesch)

    Bummp

    Same problem here, but I figured it out.

    It happens because the widget has no html ID.

    In order to solve the problem you need to modify the ‘before_widget’ property. You just need to add id="%1$s".

    Initial:

    register_sidebar( array(
            'name' => __( 'Sidebar', 'bst-plus' ),
            'id' => 'sidebar-widget-area',
            'description' => __( 'The sidebar widget area', 'bst-plus' ),
            'before_widget' => '<section class="%1$s %2$s">',
            'after_widget' => '</section>',
            'before_title' => '<h4>',
            'after_title' => '</h4>',
        ) );

    Solved:

    register_sidebar( array(
            'name' => __( 'Sidebar', 'bst-plus' ),
            'id' => 'sidebar-widget-area',
            'description' => __( 'The sidebar widget area', 'bst-plus' ),
            'before_widget' => '<section id="%1$s" class="%1$s %2$s">',
            'after_widget' => '</section>',
            'before_title' => '<h4>',
            'after_title' => '</h4>',
        ) );
    Plugin Author YITHEMES

    (@yithemes)

    Hi,

    @adriandance this is one solution. Please, @tomjesch check if your theme add the sidebar in correct way.

    Read this topic for more information: https://goo.gl/fwdcNu

    You need to check if you have set the same sidebar for each WooCommerce pages, in other words category page and shop page must have the same sidebar, not different one.

    Let me know.

    Have a nice day

    YITH

    And what if you have the same sidebar (as in the same ID) but the WooSidebars plugin is running, so there are different widget areas for different categories?
    Is there a solution for this? Or maybe only in the premium version?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Filters disappear after first filter’ is closed to new replies.