-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
60 lines (50 loc) · 1.11 KB
/
functions.php
File metadata and controls
60 lines (50 loc) · 1.11 KB
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
<?php
function custom_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
/**
* All theme functions includes goes here
*/
include 'functions/config.php';
/**
* Theme Supports
*/
include 'functions/core/theme-support.php';
/**
* Styles & scripts
*/
include 'functions/bootstrap.php';
/**
* Menus
*/
include 'functions/core/menus.php';
/*********************************************
**** CUSTOM CONTENT
*********************************************/
/**
* Content related - post types, taxonomies, ...
*/
// sidebars
if( $use_sidebars ) {
include 'functions/content/sidebars.php';
}
// post types
if( $use_custom_post_types ) {
include 'functions/content/post-types.php';
}
// taxonomies
if( $use_custom_taxonomies ) {
include 'functions/content/taxonomies.php';
}
// custom image size
if( $use_custom_image_sizes ) {
include 'functions/content/image-sizes.php';
}
/**
* Theme Options
*/
if( $use_theme_options ) {
include 'functions/theme-options/options.php';
}
?>