[Resolved] Trouble with Tympanus.net/codrops Jquery Tutorial
Having a bit of trouble implementing a jquery code from the Tympanus website. Not sure what I’m doing wrong, as I’ve implemented quite a few jquery codes on WordPress before.
The specific code I’m going for is:
What I’ve done so far:
I added the html into a WordPress page. The reason I added it to the page and not the template is because I’m hoping to have more than one of this gallery, and I’d hate to have to create a new template for every page.
Could adding the html to the page be the problem? I don’t see why.
Copied and pasted their CSS into my theme’s styles. These are all loading fine.
In this tutorial, the script is added right before the </body> so I added the code to my footer.php right before the </body>. I copied and pasted exactly what they had.
I’m pretty sure the problem is with the JS. I read through all the comments on the Tympanus post and somebody mentioned problems with the quotes in (‘click’) in a php file. The quotes have to be changed or something? Couldn’t figure that out. Or maybe it’s something completely different!
Anyways, if anyone could help me figure this out it would be awesome. It’s so frustrating because I’ve used plenty of jquery before!
- The topic ‘[Resolved] Trouble with Tympanus.net/codrops Jquery Tutorial’ is closed to new replies.