Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Includere codice jQuery in WordPress
/****************************************
Da inserire all'interno del file functions.php
*****************************************/
if ( is_single( $id ) ){ //Sostituisci $id con l'ID della pagina specifica
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'mio-codice', get_template_directory_uri() . '/percorso/file.js', array( 'jquery' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.