Solved

Wordpress Exclude Plugin

Posted on 2014-09-04
4
368 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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

840 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