Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Javascript conflict issue in WordPress

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46057
    dompalmer
    Participant

    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!

    #141390
    zedmus
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.