Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tskraft

    (@tskraft)

    Thank you! I replaced every occurence of $ with jQuery in the SudoSlider Script, and now the error disappeared.

    Thread Starter tskraft

    (@tskraft)

    Hallo,

    thank you very much! But the problem is not solved. I removed the three lines of code and loaded a tablepress-table. But now the slideshow and the menu are not working any more. My new functions.php:

    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
    wp_enqueue_style(‘tablepress-default’, get_bloginfo(‘template_url’).’/css/tablepress-default.css’, array(‘styles’));

    wp_enqueue_script( ‘jquery’, ”, false, true ); // load builtin jquery

    // für Accordion benötigte Bootstrap-Skripte
    wp_enqueue_script(‘bootstrap-components-js’, get_bloginfo(‘template_url’) . ‘/js/bootstrap-components.js’, array(‘tablepress-datatables’),false, true);

    //Sudo-Slider im Seitenkopf
    wp_enqueue_script(‘sudo-js’, get_bloginfo(‘template_url’) . ‘/js/jquery.sudoSlider.min.js’, array(‘tablepress-datatables’),false, true);

    // Hauptmenü über jquery.smartmenus.js
    wp_enqueue_script(‘sm-js’, get_bloginfo(‘template_url’) . ‘/js/jquery.smartmenus.min.js’, array(‘tablepress-datatables’),false, true);

    //Aufruf der jquery-Befehle
    wp_enqueue_script(‘main-js’, get_bloginfo(‘template_url’) . ‘/js/main.js’, array(‘tablepress-datatables’, ‘sm-js’, ‘sudo-js’),false, true);

    }

    I took care that my scripts are loaded even behind the jquery-datatables.js. The same problem if I do not load a table, but load the builtin jquery instead of my former custom jquery.1.12.4.

    Thank you very much!

    • This reply was modified 8 years, 9 months ago by tskraft.
Viewing 2 replies - 1 through 2 (of 2 total)