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> -
Dear @Walker
I do not see anything at all now, i can understand if you took the problem down over the last two days :)
As a quick try does the "Disable Ajax" option in "Lay Options" help at all?
Let me know :)
Best wishes
Richard -
-
Dear @Walker
Im so sorry for the late reply, forgive me
I just wanted to follow up and make sure if you came to a solution?Let me know if i can help further!
Best Wishes and have a lovely Weekend
Thanks for using Lay Theme!
Richard
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. When using a WordPress Cache plugin, disable it or clear your cache.
Now see if your problem solved itself.
Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it
I don't answer or check forum DMs, please just post on the forum.