0
TypeError: jQuery('ul.tabs').tabs is not a function. 
(In 'jQuery('ul.tabs').tabs('> .tabs_content')', 'jQuery('ul.tabs').tabs' is undefined)

The gallery isn't showing up properly here.

I have updated the theme and I'm using the latest version of WPL.

Not a jQuery guru, but it's some kind of conflict. Any thoughts?

Much appreciated!

rnevius
  • 26,578
  • 10
  • 58
  • 86
  • 2
    It's not a conflict. Something is missing, because there are not function called `tabs`. I think the `jquery-ui` is the missing library. – vaso123 Jul 23 '15 at 14:16
  • 1
    you should avoid using links, instead isolated the code in question, and paste it here. – aahhaa Jul 23 '15 at 14:16
  • @lolka_bolka, same thought, jquery != to jquery ui – aahhaa Jul 23 '15 at 14:16
  • Thanks.. first time post! – Roger C Jul 23 '15 at 14:17
  • WPL is a WordPress plugin for showing real estate properties. Thanks rnevius for the edit. – Roger C Jul 23 '15 at 14:23
  • When enqueuing your script in `functions.php` add a `jquery-ui-tabs` dependency. For instance `wp_enqueue_script('theme_js', get_template_directory_uri().'/js/theme.js', array('jquery', 'jquery-ui-tabs'));` where theme.js is your theme javascript file, and in the array are the dependencies. Look [here](https://codex.wordpress.org/Function_Reference/wp_enqueue_script#Link_a_Theme_Script_Which_Depends_on_jQuery) for detail. – dingo_d Jul 23 '15 at 17:41
  • That worked. Found the correct js file to load and now working properly. You guys saved my day. `wp_enqueue_script('theme_js', get_template_directory_uri().'/lib/scripts/tabs.min.js', array('jquery', 'jquery-ui-tabs'));` ' – Roger C Jul 23 '15 at 18:51

0 Answers0