-
Notifications
You must be signed in to change notification settings - Fork 162
/
functions.php
37 lines (27 loc) · 1.3 KB
/
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
28
29
30
31
32
33
34
35
36
37
<?php
// Define the version as a constant so we can easily replace it throughout the theme
define( 'LESS_VERSION', 1.1 );
/*-----------------------------------------------------------------------------------*/
/* Add Rss to Head
/*-----------------------------------------------------------------------------------*/
add_theme_support( 'automatic-feed-links' );
/*-----------------------------------------------------------------------------------*/
/* register main menu
/*-----------------------------------------------------------------------------------*/
register_nav_menus(
array(
'primary' => __( 'Primary Menu', 'less' ),
)
);
/*-----------------------------------------------------------------------------------*/
/* Enque Styles and Scripts
/*-----------------------------------------------------------------------------------*/
function less_scripts() {
// theme styles
wp_enqueue_style( 'less-style', get_template_directory_uri() . '/style.css', '10000', 'all' );
// add fitvid
wp_enqueue_script( 'less-fitvid', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ), LESS_VERSION, true );
// add theme scripts
wp_enqueue_script( 'less', get_template_directory_uri() . '/js/theme.min.js', array(), LESS_VERSION, true );
}
add_action( 'wp_enqueue_scripts', 'less_scripts' );