-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
40 lines (34 loc) · 1.22 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
<?php
/**
* Theme customizations
*
* @package Reformat Genesis Starter
* @author Ben Palmer
* @link https://reformat.co
* @copyright Copyright (c) 2020, Ben Palmer
*/
add_action( 'genesis_setup', 'child_theme_setup', 15);
load_child_theme_textdomain( 'refgensta' );
/**
* Theme setup.
*
* Attach all of the site-wide functions to the correct hooks and filters. All
* the functions themselves are defined below this setup function.
*
* @since 1.0.0
*/
function child_theme_setup() {
// Constants
define( 'CHILD_THEME_NAME', 'Reformat Genesis Starter' );
define( 'CHILD_THEME_VERSION', filemtime( get_stylesheet_directory() . '/build/css/style.css' ) );
// General
include_once( get_stylesheet_directory() . '/inc/genesis-setup.php' );
include_once( get_stylesheet_directory() . '/inc/cleanup.php' );
include_once( get_stylesheet_directory() . '/inc/gutenberg.php' );
// Theme
include_once( get_stylesheet_directory() . '/inc/navbar.php' );
include_once( get_stylesheet_directory() . '/inc/layouts.php' );
include_once( get_stylesheet_directory() . '/inc/sidebars.php' );
include_once( get_stylesheet_directory() . '/inc/styles.php' );
include_once( get_stylesheet_directory() . '/inc/scripts.php' );
}