-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.php
More file actions
30 lines (23 loc) · 1023 Bytes
/
functions.php
File metadata and controls
30 lines (23 loc) · 1023 Bytes
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
28
29
30
<?php
function grotaxblog_enqueue_styles() {
wp_register_style('bootstrap', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css' );
$dependencies = array('bootstrap');
wp_enqueue_style( 'grotaxblog-style', get_stylesheet_uri(), $dependencies );
}
function grotaxblog_enqueue_scripts() {
$dependencies = array('jquery');
wp_enqueue_script('bootstrap', get_template_directory_uri().'/bootstrap/js/bootstrap.min.js', $dependencies, '4.1.3', true );
}
function grotaxblog_wp_setup() {
add_theme_support( 'title-tag' );
}
function grotaxblog_register_menu() {
register_nav_menu('header-menu', __( 'Header Menu' ));
}
add_action( 'wp_enqueue_scripts', 'grotaxblog_enqueue_styles' );
add_action( 'wp_enqueue_scripts', 'grotaxblog_enqueue_scripts' );
add_action( 'after_setup_theme', 'grotaxblog_wp_setup' );
add_action( 'init', 'grotaxblog_register_menu' );
require_once get_template_directory() . '/class-wp-bootstrap-navwalker.php';
require_once('wp_bootstrap_pagination.php');
?>