-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
27 lines (21 loc) · 962 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
function zeforge_enqueue_styles() {
wp_register_style('bootstrap', get_template_directory_uri() . '/dependencies/bootstrap/css/bootstrap.min.css' );
$dependencies = array('bootstrap');
wp_enqueue_style( 'style', get_stylesheet_uri(), $dependencies );
}
function zeforge_enqueue_scripts() {
$dependencies = array('jquery');
wp_enqueue_script('bootstrap', get_template_directory_uri().'/dependencies/bootstrap/js/bootstrap.min.js', $dependencies, '5.2.0', true );
}
function zeforge_wp_setup() {
add_theme_support( 'title-tag' );
}
function active_menu_enqueue_script() {
wp_enqueue_script( 'active-menu', get_template_directory_uri() . '/active-menu.js', '', '', true);
}
add_action( 'wp_enqueue_scripts', 'active_menu_enqueue_script' );
add_action( 'after_setup_theme', 'zeforge_wp_setup' );
add_action( 'wp_enqueue_scripts', 'zeforge_enqueue_styles' );
add_action( 'wp_enqueue_scripts', 'zeforge_enqueue_scripts' );
?>