My other jquery plugins stop to work after loading tablepress
-
Hello,
I develop a website with jquery.smartmenus.js and sudoslider. You can see both plugin in action at the top of the website. However – after loading tablepress in the template file via tablepress_print_table, these plugins stop to work.
Here is the relevant part to enqueue my jqery scripts and css. Thank you very much!
add_action(‘wp_enqueue_scripts’, ‘my_scripts’);
function my_scripts() {
wp_enqueue_style(‘css-bootstrap’, get_bloginfo(‘template_url’).’/css/bootstrap.min.css’); //bootstrap 3.3.6
wp_enqueue_style(‘sm-core-toggle-clean’, get_bloginfo(‘template_url’).’/css/sm-core-css.css’); //jquery-smartmenus
wp_enqueue_style(‘styles’, get_bloginfo(‘template_url’).’/css/styles.css’, array(‘css-bootstrap’)); //sonstige Stile
/* eigene jquery-Version verwenden */
wp_deregister_script( ‘jquery’ );
wp_register_script( ‘jquery’, get_bloginfo(‘template_url’).’/js/jquery-1.11.3.min’);
wp_enqueue_script( ‘jquery’, ”, false, true );
// für Accordion ben?tigte Bootstrap-Skripte
wp_enqueue_script(‘bootstrap-components-js’, get_bloginfo(‘template_url’) . ‘/js/bootstrap-components.js’, array(‘jquery’),false, true);
//Sudo-Slider im Seitenkopf
wp_enqueue_script(‘sudo-js’, get_bloginfo(‘template_url’) . ‘/js/jquery.sudoSlider.min.js’, array(‘jquery’),false, true);
// Hauptmenü über jquery.smartmenus.js
wp_enqueue_script(‘sm-js’, get_bloginfo(‘template_url’) . ‘/js/jquery.smartmenus.min.js’, array(‘jquery’),false, true);
//Aufruf der jquery-Befehle
wp_enqueue_script(‘main-js’, get_bloginfo(‘template_url’) . ‘/js/main.js’, array(‘jquery’, ‘sm-js’, ‘sudo-js’),false, true);
}The page I need help with: [log in to see the link]
- The topic ‘My other jquery plugins stop to work after loading tablepress’ is closed to new replies.