[Fix] Flatsome theme compatibility
-
Pagination doesn’t properly work with Flatsome’s theme WooCommerce shop page, as the Quick-view lightbox window doesn’t open for the ajax-ed products. A fix for this:
/** * Compatibility fix for Maliky Infinite Scroll and Flatsome WC Shop page */ (function($) { "use strict"; $(document).on('malinkyLoadPostsComplete', function() { Flatsome.attach(jQuery(".shop-container")); }); })(jQuery);
And the settings:
Posts (Content) Selector: [div.shop-container] Post (Item) Selector: [div.products] Navigation Selector: [nav.woocommerce-pagination] Next Selector: [nav.woocommerce-pagination li a.next]
- The topic ‘[Fix] Flatsome theme compatibility’ is closed to new replies.