WordPress.org

Ready to get started?Download WordPress

Forums

jQuery problem (21 posts)

  1. Wonx2150
    Member
    Posted 1 year ago #

    I am having trouble with UberMenu clashing with my theme/plugins. I have been told by the UberMenu technical support people that my WordPress is calling multiple old versions of jQuery. Can someone tell me how to go about fixing this as i haven't had any luck.

    The problem occurs only when i enable UberMenu. Then the slider and various other plugins stop working. Once i disable it they work fine again.

    One of the plugins is the Nivo Slider that is built into the theme. I have tried contacting the people who made the theme but they wouldn't help.

    The website is: http://meditateincopenhagen.org/2012/.

    If someone can tell me how to solve this problem and get the site only calling one version of jQuery that would be great. I have tried telling it to only call the newest version but it didn't help.

  2. thelmareeves
    Member
    Posted 1 year ago #

    Please help. I am trying to install Gantry Framework plug in. Installation fails because it says its is already installed but it is not on my plug in list. I need to activate it to take my website to active mode. Please help :(

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    @helmareeves: It is impolite to interrupt another poster's ongoing thread with a completely unrelated question of your own. Please post your own topic.

    @Wonx2150: The issue could well be in your current theme. Try switching to the Twenty Eleven theme to confirm this.

  4. thelmareeves
    Member
    Posted 1 year ago #

    I am so sorry I am new to the site and dont know how to use it. Apologies. Just registered today.

  5. Wonx2150
    Member
    Posted 1 year ago #

    The problem is if switch to the Twenty Eleven theme it all breaks as such.

    The Slider is built into the theme and i cant find any of the other content to see if its working or not.

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Where did you download this theme from?

  7. Wonx2150
    Member
    Posted 1 year ago #

    The theme is:
    http://themeforest.net/item/limon-a-restaurant-and-spa-wordpress-theme/610441

    I tried again switching to Twenty Eleven and after a lot of messing around with the menu i got it displaying the UberMenu and the FullCalendar plugin together. FullCalendar is one of the plugins that UberMenu has been interfering with. So it points to a problem with the theme and one or all of its built in plugins.

    Although i am not sure how to solve it.

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    Oh - get rid of that theme! It's awful! It not only registers its own (pretty old) copy of jQuery but it de-registers the copy of jQuery in WordPress core - thus breaking all kinds of core & plugin functionality. I had such a terrible time trying to troubleshoot a client's site using this theme that I wrote a post on the subject.

  9. Wonx2150
    Member
    Posted 1 year ago #

    Unfortunately i cant really get ride of the theme at least not at the moment. Any suggestions on how i might fix?

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    Sorry - no. Not without completely re-writing the theme and removing its dependancy on an older version of jQuery.

  11. Wonx2150
    Member
    Posted 1 year ago #

    Oh well thank you :) At least i know were i stand now.

  12. Wonx2150
    Member
    Posted 1 year ago #

    May this hold any answers:

    // Register and load javascripts

    function t2t_register_js() {
    	if (!is_admin()) {
    		wp_deregister_script('jquery');
    		wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');
                    wp_register_script('jquery-ui', get_template_directory_uri() . '/javascripts/jquery-ui-1.8.14.js', 'jquery');
    	        wp_register_script('nivo-slider', get_template_directory_uri() . '/javascripts/jquery.nivo.slider.js', 'jquery');
    		wp_register_script('fancybox', get_template_directory_uri() . '/javascripts/fancybox/jquery.fancybox-1.3.4.pack.js', 'jquery');
    		wp_register_script('twitter', get_template_directory_uri() . '/javascripts/jquery.twitter.js', 'jquery');
    		wp_register_script('global', get_template_directory_uri() . '/javascripts/global.js', 'jquery', '1.0');
    
    		wp_enqueue_script('jquery');
    		wp_enqueue_script('jquery-ui');
    		wp_enqueue_script('nivo-slider');
    		wp_enqueue_script('fancybox');
    		wp_enqueue_script('global');
    
    	}
    }
  13. esmi
    Forum Moderator
    Posted 1 year ago #

    Oh - yes. That's the offending code block. Note the wp_deregister_script('jquery');? That removes the jQuery bundles with core - thus impacting all kinds of plugins. I really think Themeforest should remove this theme altogether.

  14. Wonx2150
    Member
    Posted 1 year ago #

    Anything i could do to fix it? Besides obviously removing that line. Although i fear that will cause problems else where.

  15. esmi
    Forum Moderator
    Posted 1 year ago #

    Remove that line and the theme will likely fall over immediately as you'll have 2 copies of jQuery conflicting with each other. To get it to work at all, you'd need to look at all the other scripts that are being enqueued and see if/how they can be hacked to work under the core jQuery.

  16. Wonx2150
    Member
    Posted 1 year ago #

    Yer might be out of my depth now. But ill have a play around and try contacting the authors again.

  17. Japh
    Member
    Posted 1 year ago #

    @esmi, thank you for the heads up on this theme. We'll look into it further and likely disable the theme until the developer fixes the issue.

  18. esmi
    Forum Moderator
    Posted 1 year ago #

    @Japh: Thanks. If you need any details of my earlier problems with the theme, you know where I am. :-)

  19. Japh
    Member
    Posted 1 year ago #

    Just to update you, this theme has now been updated to no longer deregister jQuery, and it passes theme-check.

  20. Wonx2150
    Member
    Posted 1 year ago #

    When was the update released? It hasn't asked me to update the theme yet and is there another way to update it if it doesnt?

  21. Japh
    Member
    Posted 1 year ago #

    Many themes that aren't hosted on the WordPress.org repository may not notify you of updates.

    In the case of this theme, you will need to re-download it from ThemeForest and update yourself manually. Keep in mind that if you have made any customisations, they may be lost if you haven't made them as a child theme.

Topic Closed

This topic has been closed to new replies.

About this Topic