Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Подключение скриптов Wp
add_action( 'wp_enqueue_scripts', 'theme_add_scripts' );
function theme_add_scripts() {
//add scripts
wp_enqueue_script( 'main-js', get_template_directory_uri() .'/js/build.js', array('jquery'), '1.0', true );
//add style
wp_enqueue_style( 'main-style', get_template_directory_uri() .'/css/main.css');
}
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.