Jump to content

- - - - -

Best approach for integrating with a service that needs specific version of jQuery?

  • Please log in to reply
1 reply to this topic

#1 chamainew†


    Advanced Member

  • DMS Subscriber†
  • 46 posts
  • LocationOakland, California
  • Framework Version:2.3.8
  • Country: Country Flag

Posted 27 June 2014 - 11:57 PM

Hi there,


I'm working with a developer on an integration between my DMS2-based site and a 3rd party service that needs to use an older version of jQuery for some important transactional elements.  


We initially tried to create a custom page template in our child theme (as per http://forum.pagelin...page-templates/), with the thought that we could un-enqueue jQuery (and other things that don't work) in our new template.


However, the page template is not selectable in the DMS Page Setup box.  We are using the skeleton-basic child theme.


This particular page doesn't need to do any drag and drop editing - but we do want the header, menu, and other elements on our site. The transactional element is inserted in the page using a shortcode, after the page content.


I want to be able to create several instances of this page, which is why we thought a page template would be the easiest way to accomplish this.  An alternative would be to unhook the jquery  in functions.php using a custom field, but this would be a lot more work than just a page template.


Do you have some other suggestions?


Summary of our setup:


Theme:  Skeleton-basic child theme and DMS2

Hosting: LAMP stack at LiquidWeb

Website: eml.techliminal.com





#2 Simon_P



  • Administrators

  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 30 June 2014 - 06:38 PM

Including an older version of jQuery will break a lot of things in DMS, not just the editor but just about every section uses jQuery to some degree.

You wont be able to de-queue the WordPress version of jQuery using a template anyway. You will almost certainly need some PHP in a functions file somewhere to do it.


What version of jQuery does your custom script need? Have you tried it with the regular up to date version bundled with WordPress?