SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot ArtphotoasiA's Avatar
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with jquery and WP

    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 ...

    Code:
    // 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
    Code:
    http://www.artphotoasia.net/blog/wpdir/
    In the header of my generated page I have this...

    GENERATED BY wpdir
    Code:
    <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
    Code:
    <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???
    More by Corrado Prever... visit www.corradoprever.com
    Porfolio... visit www.500px.com

  2. #2
    SitePoint Zealot ArtphotoasiA's Avatar
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So no one can help??

    Too sad.
    More by Corrado Prever... visit www.corradoprever.com
    Porfolio... visit www.500px.com

  3. #3
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    shouldn't be too difficult.

    Simply look through the files in the wpdir folder within the plugins folder. Somewhere you will see that they will load that file simply coment that line out.
    Last edited by Mittineague; Mar 6, 2012 at 20:53. Reason: please read the FAQ

  4. #4
    SitePoint Zealot ArtphotoasiA's Avatar
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did that, if you read the first line of the code, but commenting the line make jquery not work in the plugin so some feature can not be enabled.

    Yesterday was able to solve the issue in another way.
    More by Corrado Prever... visit www.corradoprever.com
    Porfolio... visit www.500px.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •