0

Hello everyone...
I have a good issue here...

I made a website in WP and I have now a conflict with an old plugin.

That plugin is called wpdir (word press directory pro) and is useful for several reason but regretfully no one care about that code anymore.

Here are the facts:

(1) If I install the plugin wpdir correctly WP dinamic widget in admin area will be frozen till I deactivate the plugin.

(2) I'm able to deactivate the jquery call in the plugin in this way ...

// add_action('wp_head', wp_enqueue_script('myjquery', '/wp-content/plugins/wpdir/js/jquery.js'));

(3) If I do step 2 all will be ok in WP admin area but some feature like the rating features (using jquery) in the plugin and in the website will stop to work

I understood already that the issue is a double call of jquery library and also I noted that is running 2 different version of jquery


You can check the header at

http://www.artphotoasia.net/blog/wpdir/

In the header of my generated page I have this...

GENERATED BY wpdir

<script type='text/javascript' src='http://www.artphotoasia.net/blog/wp-content/plugins/wpdir/js/jquery.js?ver=3.3.1'></script>

GENERATED BY wp

<script type='text/javascript' src='http://www.artphotoasia.net/blog/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>

The question is: How can I solve the issue and solve the conflict???

2
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by ArtphotoasiA
0

try deregister the script before your enqueue of new script.
wp_deregister_script( 'jquery' );

0

try deregister the script before your enqueue of new script.
wp_deregister_script( 'jquery' );

I will try...

0

I will try...

I try

add_action('wp_head', wp_deregister_script( 'jquery' ));

and also

wp_deregister_script( 'jquery' );

Is not working

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.