• Resolved lawkwok

    (@lawkwok)


    First off, thanks for this great plugin. It does the job of expensive monthly payment ones of other e-commerce platforms for free.

    I’m having a problem with the sidebar not refreshing when attributes are selected. The products and URL update fine, but the sidebar is static. If I refresh the page manually, then the “chosen” attributes are selected accordingly.

    Does anyone have this problem as well?

    https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Lawkwok,

    I just had the same problem.
    This is how i ‘fixed’ it!

    My widget was build like this (in my themes functions.php).

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

    What i removed the before and after parameters. Like this..

    register_sidebar( array(
            'name' => __( 'Sidebar - shop filter', 'bst' ),
            'id' => 'sidebar-widget-area',
            'description' => __( 'The filter sidebar', 'bst' ),
            'before_title' => '<h3>',
            'after_title' => '</h3>',
        ) );

    And now it’s working.
    I hope that this might help you!

    Thread Starter lawkwok

    (@lawkwok)

    Thank you! That works.

    Even without specifying before_widget and after_widget parameters, a class called “widget” still gets applied to the li items so you can style them. If we add our before_widget and after_widget I guess we are adding extra markup and confusing the plugin.

    Yes, i think the plugin can’t handle the extra html elements or something.
    I’m glad it worked out for you!

    Is it possible to resolve this ? removing before_widget and after_widget breaks my website little bit.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebar does not refresh’ is closed to new replies.