Forum Replies Created

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

    (@ronicke)

    Thank you!

    The solution was to disable Coupons inside the Elementor builder also.

    Best regards

    Ronicke

    Thread Starter ronicke

    (@ronicke)

    Thank you for helping me on the right path.
    I was not aware that WordPress already included the jquery package.

    function load_stylesheets()
    {
        /*
         * array() if its required to load another script too before working. Version. media
         */
        wp_register_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array(), '4.4.1', 'all' );
        wp_enqueue_style('bootstrap');
        /*
         * For override purpose - Load this last.
         */
        wp_register_style('style', get_template_directory_uri() . '/style.css', array(), '4.4', 'all' );
        wp_enqueue_style('style');
    }
    
    /*
     *  Add the function to be run.
     */
    add_action('wp_enqueue_style', 'load_stylesheets');
    
    function load_scripts(){
        wp_register_script('customScript', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ), '1.0.0', true);
        wp_enqueue_script( 'customScript' );
    }
    add_action('wp_enqueue_scripts', 'load_scripts');
Viewing 2 replies - 1 through 2 (of 2 total)