Solved

Wordpress Exclude Plugin

Posted on 2014-09-04
4
359 Views
Last Modified: 2014-09-04
I have a wordpress website that has a shopping cart.  On the checkout page, the checkout is not working correctly.  I have discovered that there is a plugin conflict.  The Wordpress plugin Advanced Custom Fields interferes with the AJAX on the checkout page.  Is there any way to exclude a specific Plugin from a specific page in Wordpress?
0
Comment
Question by:rgranlund
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Brad Groux
ID: 40303982
I believe with the ACF Categories plugin that you can create categories and exclude them - http://wordpress.org/plugins/advanced-custom-fields-categories/
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40304076
Technically you're not excluding the plugin but you don't want the plugin's version of javascript to load on the checkout page only.

The way to do this is to add some code to functions.php that checks for the page ID of the checkout page and then unenqueues (unwieldy word there) the appropriate javascript calls.  The javascript should re-enqueue on the next page load.

That being said, I wouldn't try that...it's a band-aid on the real problem which is ACF or the shopping cart is loading something up the wrong way.  My guess is the cart is hard-coding a call to a specific JQuery library instead of using wp_enqueue_script() which should prevent these kinds of conflicts.
0
 
LVL 7

Author Comment

by:rgranlund
ID: 40304247
I still can't find where it is going wrong, how do I unenque a plugin?
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 40304259
how do I unenque a plugin?

You don't.  You un-enqueue individual scripts that the plugin loads.

http://codex.wordpress.org/Function_Reference/wp_dequeue_script
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Python - desktop use 1 32
Finding the source of a shortcode 2 24
Full width video doesn't shrink on mobile- wordpress, divi 8 47
PHP AJAX Wordpress 9 21
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question