Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function web_script() {
- wp_register_script( 'web_script', 'main.js' );
- wp_enqueue_script('web_script');
- }
- add_action( 'wp_enqueue_scripts', 'web_script' );
- wp_register_script( 'web_script', get_template_directory_uri() . '/main.js';
Add Comment
Please, Sign In to add comment