31 lines
909 B
PHP
31 lines
909 B
PHP
<?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',
|
|
array(
|
|
'image',)
|
|
);
|
|
|
|
}
|
|
|
|
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' );
|
|
|
|
?>
|