• Hello, I’m having trouble with Shortcodes Ultimate when I add my own custom jquery to my website. Shortcodes stop working when this is in my functions.php:

    function wpb_adding_scripts() {
    wp_register_script('websitefunctions', get_stylesheet_directory_uri() . '/js/websitefunctions.js', array('jquery'), 3.3, true);
    wp_enqueue_script('websitefunctions');
    }
    add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' ); 

    Shortcodes stop working even when my jquery file is empty, so it isn’t the jquery I wrote that is causing this. It is this code above. The jquery I wrote works, however I have to disable it for now because all of my shortcodes don’t work when I have it. I tried slight variations in the functions.php file but the shortcodes continue to break.

    Can anyone help?

  • The topic ‘Shortcodes break when I enqueue a working jquery script file’ is closed to new replies.