Title: Javascript conflict with Divi theme and some plugins
Last modified: August 30, 2016

---

# Javascript conflict with Divi theme and some plugins

 *  Resolved [danbrady](https://wordpress.org/support/users/danbrady/)
 * (@danbrady)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/javascript-conflict-with-divi-theme-and-some-plugins/)
 * WP Retina 2x is causing a conflict with Divi theme (Elegant Themes) and some 
   plugins. Sliders and collapse / expand (all reliant on JS) were not working.
 * JS error:
 * TypeError: logo_src is undefined
    is_svg = logo_src.substr( -3, 3 ) === ‘svg’?
   true : false,
 * Location of: [http://printtrail.com/wp-content/themes/Divi/js/custom.js?ver=2.5.7](http://printtrail.com/wp-content/themes/Divi/js/custom.js?ver=2.5.7),
   line 800
 * We disabled WP Retina 2x and now the slider works as does the expand/collapse
   plugin. The error is gone too. ​​
 * [https://wordpress.org/plugins/wp-retina-2x/](https://wordpress.org/plugins/wp-retina-2x/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/javascript-conflict-with-divi-theme-and-some-plugins/#post-6824526)
 * Hello,
 * Sounds like more a problem to me in the theme. They should check if an object
   is exist before using it, and they don’t. If they would, everything would work.
   Retina.js (is it the method you are using) is switching image, which might cause
   another script to not find the original image. Indeed, it’s changed.
 * WP Retina 2x uses many different methods, you can give a try to PictureFill, 
   it is the recommended one 🙂
 *  Thread Starter [danbrady](https://wordpress.org/support/users/danbrady/)
 * (@danbrady)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/javascript-conflict-with-divi-theme-and-some-plugins/#post-6824530)
 * retina.js and picturefill both produce the error
 * IMG rewrite works fine, however
 * My first thought was the theme too, but the retina plugin appeared to conflict
   with another plugin too – HTML5 Responsive FAQ. this also now works now I’ve 
   switched to IMG rewrite, but I haven’t yet been able to test on a retina device
   to see if the retina images are being served.
 *  Thread Starter [danbrady](https://wordpress.org/support/users/danbrady/)
 * (@danbrady)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/javascript-conflict-with-divi-theme-and-some-plugins/#post-6824531)
 * Apologies, it was only PictureFill that caused the error, retina.js works ok
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/javascript-conflict-with-divi-theme-and-some-plugins/#post-6824532)
 * Then it sound pretty bad.
 * Retina.js and Picturefill are two different methods, made by two different teams
   of developers. From tomorrow, Picturefill/Src-set will be adopted by WP 4.4 as
   a default way of displaying images in post. Your theme might not be ready for
   the jump…
 * If your theme doesn’t work with it, you can use the options in the Retina plugin
   to disable Reponsive Images with 4.4 and keep it to HTML Rewrite.
 * Maybe you should ask your theme dev why it is not working with Retina.js and 
   PictureFill.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Javascript conflict with Divi theme and some plugins’ is closed to new
replies.

 * ![](https://ps.w.org/wp-retina-2x/assets/icon-256x256.png?rev=2597316)
 * [Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF](https://wordpress.org/plugins/wp-retina-2x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-retina-2x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-retina-2x/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-retina-2x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-retina-2x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-retina-2x/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/javascript-conflict-with-divi-theme-and-some-plugins/#post-6824532)
 * Status: resolved