-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·79 lines (65 loc) · 1.67 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
* Functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Acorn Theme
*/
if ( ! function_exists( 'acorn_theme_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
function acorn_theme_setup() {
/**
* Register nav menus.
*
* @link https://codex.wordpress.org/Function_Reference/register_nav_menus
*/
register_nav_menus(
array(
'main' => esc_html__( 'Main Menu', 'acorn' ),
)
);
/**
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support( 'post-thumbnails' );
}
add_action( 'after_setup_theme', 'acorn_theme_setup' );
endif;
/**
* Load styles and scripts.
*/
require get_template_directory() . '/inc/scripts.php';
/**
* Setup Custom Endpoints
*/
require get_template_directory() . '/inc/endpoints/menu-endpoints.php';
require get_template_directory() . '/inc/endpoints/image-endpoints.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Custom post types and taxonomies.
*/
require get_template_directory() . '/inc/cpt.php';
/**
* Custom hooks.
*/
require get_template_directory() . '/inc/hooks.php';
/**
* Custom template functions.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Settings to toggle splash page.
*/
require get_template_directory() . '/inc/settings.php';
/**
* Removes customizer from this theme.
*/
require get_template_directory() . '/inc/remove-customizer.php';