Solved

Wordpress Exclude Plugin

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
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 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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

751 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