Cannot get custom js in cornerstone work

Hello,
I have a problem running a script.
Im adding it to custom js in cornerstone.
It is this simple code:
$(document).ready(function() {
setTimeout(function() {
$(".play-box").addClass(“active”);
}, 1000);
});
I cant get it run. It is loaded in my document but dont run.
Please hepl

Hi @mmthesign,

Thanks for reaching out.

Can you please give us the specific URL of the page to check why the your custom script is not working on your website? In that way, we can better help you with your issue.

Hope that helps.

Thank you.

I did secure note

Hi @mmthesign,

Thank you for providing the credentials. I checked your setup but couldn’t find the page in question however I noticed you’ve cache plugin enabled which could be serving the old cached content. Try clearing your plugin’s cache first and see if this works.

Caching plugins are best to turn on only when you’ve finished building the site. If the issue persists then please provide the page URL where you’ve added the script so we can take a closer look.

Thanks!

here is the url https://mehendi.pl/kurs-malowania-henna-online

Hey @mmthesign,

Your code won’t really work in WordPress and not just in Cornerstone.

To know why, please check this article: https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/

Please note that we do not provide custom coding support. If you have JS issues in the future, please have a JS expert with WordPress experience check your custom code.

Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.