AyeCode / geodirectory

GeoDirectory is the leading Directory Plugin for WordPress. Compatible with Gutenberg and the most popular page builders such as Elementor, Oxygen, Beaver Builder and Divi. GeoDirectory is the only solution for WordPress that can scale to millions of listings and high traffic.
https://wpgeodirectory.com/
Other
40 stars 21 forks source link

Elementor Archive posts block - infinite scrolling pagination option is not working #2508

Closed 1naveengiri closed 8 months ago

1naveengiri commented 8 months ago
Screenshot 2023-12-20 at 8 22 59 PM
kprajapatii commented 8 months ago

Elementor Archive Posts block options "Load on Click" and "Infinite Scroll" don't supported with custom skin. It only works with default skins like Classic, Cards & Full Content.

See https://wordpress.org/support/topic/plugin-breaks-elementor-load-on-click-and-infinite-scroll/ & https://github.com/dudaster/ele-custom-skin/issues/790

hedali1997 commented 4 months ago

Before installation, use Load on Click, but after installation, Load on Click becomes invalid Custom js:

    if (jQuery(".e-load-more-anchor").length > 0) {
        const mainListDom = jQuery(".e-load-more-anchor").parent().parent();
        let pageDataSettingJson = mainListDom.attr('data-settings');
        let pageDataSetting = JSON.parse(pageDataSettingJson);
        if (!pageDataSetting['pagination_type']) {
            pageDataSetting['pagination_type'] = 'load_more_on_click';
        }
        mainListDom.attr('data-settings', JSON.stringify(pageDataSetting));
    }

Maybe it can help you