Last active
September 29, 2017 09:45
-
-
Save bluvertigo/a5f6f67a89ba7f87a9d7 to your computer and use it in GitHub Desktop.
Includere script css e js / include script file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Add Script to jQuery | |
| */ | |
| // css/js | |
| function function_add_script() { | |
| wp_enqueue_script( 'nome_01', get_stylesheet_directory_uri().'/PERCORSO.js', array('jquery'), null, true ); | |
| wp_enqueue_script( 'nome_02', get_stylesheet_directory_uri().'ATTIVA_SCRIPT.js', array('nome_01'), null, true ); | |
| wp_enqueue_style( 'nome_02', get_stylesheet_directory_uri().'PERCORSO.css'); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'function_add_script', 10 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* hook up the functionality */ | |
| (function($) { | |
| $(document).ready(function(){ | |
| // Abilitare le funzionalità qui | |
| // -->> | |
| }); | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment