new
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
<?php
|
||||
|
||||
define('BOOTSTRAP_VERSION', '5.3.1');
|
||||
define('BOOTSTRAP_ICON_VERSION', '1.9.1');
|
||||
|
||||
function zerro_setup() {
|
||||
|
||||
add_theme_support( 'menus' );
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
add_theme_support(
|
||||
'post-formats',
|
||||
@@ -9,6 +15,17 @@ function zerro_setup() {
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function bootstrap_script_init() {
|
||||
wp_enqueue_style( 'bootstrap_icons', get_template_directory_uri() . '/css/bootstrap-icons.css', array(), BOOTSTRAP_ICON_VERSION, 'all' );
|
||||
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), BOOTSTRAP_VERSION, 'all' );
|
||||
wp_enqueue_style( 'main-style', get_stylesheet_uri());
|
||||
|
||||
wp_enqueue_script('main', get_template_directory_uri() . '/js/main.js');
|
||||
wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.bundle.min.js', [ 'jquery' ] );
|
||||
}
|
||||
|
||||
add_action( 'after_setup_theme', 'zerro_setup' );
|
||||
add_action( 'wp_enqueue_scripts', 'bootstrap_script_init' );
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user