Closed 1naveengiri closed 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
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