-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
38 lines (34 loc) · 1.06 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
38
<?php
/////////////////////
// CUSTOMIZER LOGO //
/////////////////////
add_theme_support( 'custom-logo' );
///////////////////////////
// CUSTOMIZER BACKGROUND //
///////////////////////////
$bg_defaults = array(
'default-color' => '',
'default-image' => get_stylesheet_directory_uri() . '/img/background.png',
'default-repeat' => '',
'default-position-x' => '',
'default-attachment' => '',
'wp-head-callback' => '_custom_background_cb',
'admin-head-callback' => '',
'admin-preview-callback' => ''
);
add_theme_support( 'custom-background', $bg_defaults );
/////////////////////
// ENQUEUE SCRIPTS //
/////////////////////
add_action('wp_enqueue_scripts', 'custom_scripts');
function custom_scripts() {
wp_enqueue_style( 'landbryo', get_stylesheet_uri() );
wp_enqueue_script( 'landbryo_script', get_stylesheet_directory_uri() . '/js/scripts.js', array(), '1.7', true );
}
//////////
// MENU //
//////////
function landbryo_menu() {
register_nav_menu('the-menu',__( 'The Menu' ));
}
add_action( 'init', 'landbryo_menu' );