Hi Joshua,
Where to add code? I added in theme functions.php and nothing happens. I have unchecked “Keep jQuery in the Header” and added this code from above with page slug “home”.
add_filter( ‘stf_exclude_scripts’, ‘jdn_jquery_in_header’, 10, 1 );
function jdn_jquery_in_header( $scripts ) {
if( is_page( home ) ) { // Replace this number with the page id or page slug
$scripts[] = ‘jquery’;
}
return $scripts;
}
I want to use jquery in header, only on home page.
Thanks.