-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
38 lines (33 loc) · 1.03 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
/**
* Rotaract Family theme functions and definitions.
*
* Add your custom PHP in this file.
* Only edit this file if you have direct access to it on your server (to fix errors if they happen).
*/
/**
* Disable attention-seeking advertising banner for the premium version of GeneratePress.
* GeneratePress is the parent theme of this theme.
*/
define( 'GP_PREMIUM_VERSION', false );
function generate_fonts_customize_register() {
return;
}
/**
* Get all necessary theme files
*/
$theme_dir = get_stylesheet_directory();
/**
* Load the text domain
*/
add_action( 'after_setup_theme', 'rotaract_family_theme_setup' );
function rotaract_family_theme_setup() {
load_theme_textdomain('rotaract-family', get_stylesheet_directory() . '/languages' );
}
require $theme_dir . '/inc/defaults.php';
require $theme_dir . '/inc/customizer.php';
require $theme_dir . '/inc/styles.php';
require $theme_dir . '/inc/header.php';
require $theme_dir . '/inc/footer.php';
require $theme_dir . '/inc/scripts.php';
require $theme_dir . '/inc/misc.php';