• I’m using GeneratePress theme on my site. The theme by default is not loading these JS resources:

    /wp-includes/js/jquery/jquery.min.js?ver=x.x.x
    /wp-includes/js/jquery/jquery-migrate.min.js?ver=x.x.x

    May i know how to load these on my site?

    I’m using child theme.

Viewing 1 replies (of 1 total)
  • Alvind

    (@alvindcaesar)

    Hi there,

    Add this code to your child theme’s functions.php file:

    add_action( 'wp_enqueue_scripts', 'tu_load_jquery' );
    
    function tu_load_jquery() {
    wp_enqueue_script( 'jquery' );
    }
Viewing 1 replies (of 1 total)

The topic ‘How to load wordpress default javascripts’ is closed to new replies.