/**
* Enqueue scripts and styles.
*/
function redux_theme_scripts() {
wp_enqueue_style( 'redux-theme-style', get_stylesheet_uri() );
wp_enqueue_script( 'redux-theme-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );
wp_enqueue_script( 'redux-theme-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'redux_theme_scripts' );
Enqueue scripts and styles.
最新推荐文章于 2021-03-22 04:33:10 发布