gumroad embeded script is not loading
-
Hi there,
I just integrated the script from gumroad for a product. It`s a test site.
https://www.computerbeachparty.shop/cbp2020The Script is on the Front Page.
When I click on the About Site and afterwards back again on the Site Title the Front page is loading but not the product. I think the gumroad script needs a reload to show again the product.I could not find a solution!?
Anyone an idea?
thanks a lot
Simon
-
-
Hi Richard,
I think the problem is that Lay Theme website is a "Single Page" JavaScript application and cannot just use jQuery(document).ready(…) to execute the js because the ready event only fires once when the website loads the first time.
I tried to solv it with the following instructions;
https://laytheme.com/documentation.html#custom-javascriptbut my js knowlegne is limited ...
<script>
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
if(type == "page" && obj.id == 2){
src="https://gumroad.com/js/gumroad-embed.js";
}
});
</script> -
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login