javascript - Drop down menu suddenly stopped working -


i'm using wordpress (theme: future) built on bootstrap. theme responsive , on mobile view menu transforms dropdown menu. in desktop version have dropdown menu on 1 of menu options, both these dropdown menus has stopped working.

i haven't done changes source code except css files. in console there 2 javascript errors, though i'm not sure if connected problem:

uncaught typeerror: object #<object> has no method 'on'         bootstrap.min.js?ver=3.0.3:9 uncaught typeerror: object #<object> has no method 'tooltip'    custom.js?ver=1.0:62 

when hover drop down menu links "#" suppose that's correct? otherwise don't have clue start problem , of course include code if tell me one.

edit: here site, http://www.henrikpetersson.se/lararummet/

your site using jquery 1.4 on() method wasn't added until jquery 1.7. bootstrap trying use , causing error.

it's possible carousel plugin you're using loading old version of jquery , preventing wordpress loading newer one. see source of jquery 1.4 link above (from plugin's directory). try disabling plugin , see if menu works. wordpress ships more modern version of jquery.

edit
yup. plugin last updated in 2012 , loads jquery in worst possible way.

function sponsors_carousel_enqueue_scripts() {     if ( function_exists('plugin_url') )         $plugin_url = plugin_url();     else         $plugin_url = get_option('siteurl') . '/wp-content/plugins/' . plugin_basename(dirname(__file__));      // jquery     wp_deregister_script('jquery');     wp_register_script('jquery', ($plugin_url  . '/jquery-1.4.2.min.js'), false, '1.4.2');     wp_enqueue_script('jquery'); 

source: http://plugins.svn.wordpress.org/sponsors-carousel/trunk/sponsors-carousel.php

the plugin saying

  1. unregister whatever version of jquery wp wants load
  2. make new script called jquery ancient version (because i'm right)
  3. load awesome version.

terrible.

options

  1. find carousel plugin
  2. edit plugin , remove 3 of lines (should fine)
  3. (if 2. doesn't work...) edit plugin , point @ more modern version of jquery

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -