Results 1 to 5 of 5

Thread: 3.1.4 Theme-Enqueue Overkill Killing Plugin

  1. #1
    Thread Starter
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts

    3.1.4 Theme-Enqueue Overkill Killing Plugin

    Classipress's theme-enqueue.php is still causing me a problem with a popular plugin for vertical menus.

    The plugin is using the proper wp enqueue method to register the plugin like this--

    add_action( 'wp_head', array('dc_jqmegamenu', 'header') );
    // Scripts
    wp_enqueue_script( 'jquery' );
    wp_enqueue_script( 'jqueryhoverintent', dc_jqmegamenu::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
    wp_enqueue_script( 'dcjqmegamenu', dc_jqmegamenu::get_plugin_directory() . '/js/jquery.dcmegamenu.1.3.2.js', array('jquery') );
    }
    add_action( 'wp_footer', array('dc_jqmegamenu', 'footer') );

    $registered_skins = array();

    However, Classipress, causes the Footer Javascript to show up DUPLICATED and this invalidates / prevents the menu from working as it would on default Wordpress themes where it only shows up once, as intended by the plugin designer.

    Here is how the Vertical Menu javascript shows up TWICE. ONLY while running Classipress. Two instances KILLS the menu function.




    <script type="text/javascript">
    jQuery(document).ready(function($) {
    jQuery('#dc_jqverticalmegamenu_widget-3-item .menu').dcVerticalMegaMenu({
    rowItems: 4,
    speed: 'fast',
    direction: 'left',
    effect: 'show'
    });
    });
    </script>
    <script type="text/javascript">
    jQuery(document).ready(function($) {
    jQuery('#dc_jqverticalmegamenu_widget-3-item .menu').dcVerticalMegaMenu({
    rowItems: 4,
    speed: 'fast',
    direction: 'left',
    effect: 'show'
    });
    });
    </script>


    I don't know if this is the reason, a line in the Classipress theme-enqueue.php --


    wp_enqueue_script('jquery'); // load no matter what



    Since this plugin runs on thousands of Wordpress sites correctly, including 3.2.1, and will run on my site if I use other themes not called Classipress, I must put the blame on the Classipress theme-enqueue.php code.

    How can I modify the current Classipress theme-enqueue.php file to filter out double registering or double printing this dynamic javascript function produced by the Vertical Menu plugin?

    I have posted about this months and months ago and it persists through successive versions of Classipress.

    Thanks so much!

  2. #2
    Thread Starter
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Marketplace Seller thesyndicate's Avatar
    Join Date
    Aug 2009
    Location
    The Matrix
    Posts
    1,842
    Thanks
    17
    Thanked 52 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!


    I love to help out you out but please read this first Have you tried to install in a root domain? Have you tried to Resave permalinks? Have you tried to disable all plug in? Have you tried the default theme of Wordpress?

    ++ If the issue is fixed consider closing the thread and change to solved, thank you for helping us helping you. ++

  4. #4
    Thread Starter
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Member zuko's Avatar
    Join Date
    Apr 2011
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Theme-enqueue.php
    By mr_green in forum ClassiPress General Discussion
    Replies: 2
    Last Post: October 21st, 2010, 02:55 AM
  2. Child Theme - logout redirection to default theme issue
    By cgervereau in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 1st, 2010, 01:48 AM
  3. problem with "theme my login" plugin
    By tempo in forum ClassiPress General Discussion
    Replies: 0
    Last Post: July 3rd, 2010, 03:50 PM