JavaScript file not firing after clicking load more

[ad_1]

Hi,

After clicking the load more button, which works good, the extra loaded products don’t have the same design on them as the first 20 products.

Previously I used Load More Anything (but didn’t work for me) and had the same problem. I therefore created a script which fired the Javascript file when clicking the pagination button and that worked, but somehow it doesn’t work for your load more button.

This is the code:

jQuery(document).ready(function() {
jQuery(“a.lmp_button”).click(function(){
$.getScript(“https://juneandcharlie.nl/wp-content/plugins/ddprodm/build/ragnar/js/ragnar-shop-landing-v2/ragnarProductsOlivia.js?ver=6.2.2”);
});
});

Could you maybe explain why it doesn’t work, or is there a way I can make it work? I’m using the Divi shop module.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer