-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
functions.php
161 lines (110 loc) · 4.75 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
// Disable WordPress.org updates for this theme
add_filter('gu_override_dot_org', function ($overrides) {
$overrides[] = 'hovercraft';
return $overrides;
});
// MENUS
// Menu locations
require get_template_directory() . '/inc/menus/menu-locations.php';
// Accordion menu
require get_template_directory() . '/inc/menus/accordion-menu.php';
// Offcanvas menu
require get_template_directory() . '/inc/menus/offcanvas-menu.php';
// Overlay menu
require get_template_directory() . '/inc/menus/overlay-menu.php';
// Select menu
// require get_template_directory() . '/inc/menus/select-menu.php';
// Back to top
require get_template_directory() . '/inc/back-to-top.php';
// bbPress disable reply links
require get_template_directory() . '/inc/bbpress-disable-reply-links.php';
// bbPress quick tags
require get_template_directory() . '/inc/bbpress-quick-tags.php';
// bbPress search results
require get_template_directory() . '/inc/bbpress-search-results.php';
// Breadcrumbs
require get_template_directory() . '/inc/breadcrumbs.php';
// Bullets category
require get_template_directory() . '/inc/bullets-category.php';
// Register portal category (customizer)
require get_template_directory() . '/inc/customizer/register-portal-category.php';
// Register snippets category (customizer)
require get_template_directory() . '/inc/customizer/register-snippets-category.php';
// font family helper (customizer)
require get_template_directory() . '/inc/customizer/font-family-helper.php';
// google fonts array (customizer)
require get_template_directory() . '/inc/customizer/google-fonts-array.php';
// google fonts multilingual array (customizer)
require get_template_directory() . '/inc/customizer/google-fonts-multilingual-array.php';
// CSS generator
require get_template_directory() . '/inc/css-generator.php';
// Custom header
require get_template_directory() . '/inc/custom-header.php';
// Custom post test
require get_template_directory() . '/inc/custom-post-test.php';
// Customizer settings
require get_template_directory() . '/inc/customizer/customizer-settings.php';
// Register blog category
require get_template_directory() . '/inc/customizer/register-blog-category.php';
// Disable responsive images
require get_template_directory() . '/inc/disable-responsive-images.php';
// Featured images
require get_template_directory() . '/inc/featured-images.php';
// Footer callout
require get_template_directory() . '/inc/footer-callout.php';
// Full screen search
require get_template_directory() . '/inc/full-screen-search.php';
// Suggest Git Updater
require get_template_directory() . '/inc/git-updater.php';
// Google fonts
require get_template_directory() . '/inc/google-fonts.php';
// Header cleanup
require get_template_directory() . '/inc/header-cleanup.php';
// Video uploader
require get_template_directory() . '/inc/header-video.php';
// Hide certain categories
require get_template_directory() . '/inc/hide-certain-categories.php';
// Alternative logo
require get_template_directory() . '/inc/logo-alternative.php';
// Default logo
require get_template_directory() . '/inc/logo-default.php';
// Media sizes
require get_template_directory() . '/inc/media-sizes-verify.php';
// Media sizes insert
require get_template_directory() . '/inc/media-sizes-insert.php';
// Meta box
require get_template_directory() . '/inc/meta-box.php';
// Pagination
require get_template_directory() . '/inc/pagination.php';
// Portal category
require get_template_directory() . '/inc/portal-category.php';
// Sidebar callout
require get_template_directory() . '/inc/sidebar-callout.php';
// Tags list
require get_template_directory() . '/inc/tags-list.php';
// Title homepage
require get_template_directory() . '/inc/title-homepage.php';
// Title tag
require get_template_directory() . '/inc/title-tag.php';
// Widget areas
require get_template_directory() . '/inc/widget-areas.php';
// Remove generator
require get_template_directory() . '/inc/remove-generator.php';
// WooCommerce support
require get_template_directory() . '/inc/woocommerce-support.php';
// Page excerpts
add_post_type_support( 'page', 'excerpt' );
// RSS feeds meta
add_theme_support( 'automatic-feed-links' );
// Internationalization
function hovercraft_load_theme_textdomain() {
load_theme_textdomain( 'hovercraft', get_template_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'hovercraft_load_theme_textdomain' );
// Disable post gallery inline CSS
add_filter( 'use_default_gallery_style', '__return_false' );
// Disable archive title prefixes
// https://wordpress.stackexchange.com/questions/179585/remove-category-tag-author-from-the-archive-title
// https://wordpress.stackexchange.com/questions/245274/how-to-remove-archive-label-from-archive-title
add_filter( 'get_the_archive_title_prefix', '__return_false' );