Solved

Wordpress Exclude Plugin

Posted on 2014-09-04
4
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

617 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