Grow your CSS skills. Land your dream job.

Javascript conflict issue in WordPress

  • # July 2, 2013 at 4:21 pm

    Hello,

    Long time css-ticks admirer, first time poster… I’m a real beginner at using Javascript and am clunky in my approach so please bear with me.

    I’m attempting to use a script to produce a javascript enabled interactive diagram. I have it working on a static site: http://www.dominicpalmer.co.uk/soldier/ but am struggling to use it within the page of my wordpress site at http://www.dominicpalmer.co.uk/tommy-atkins/soldier/

    It is loading but, by the look of it, causing some kind of conflict as it’s flying all over the place as you’ll see. If anyone is able to guide me to the error that would be much appreciated. The WordPress theme is a Genesis child theme.

    Many thanks in advance!

    # July 2, 2013 at 11:37 pm

    Are using jQuery for this? If you are, you might want to make sure to dequeue jQuery in WordPress if you’re using your own. Or run your jQuery in no-conflict mode. You could also just use the jQuery script that WordPress comes with and not link to your own copy.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".