-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfunctions.php
executable file
·34 lines (26 loc) · 1.08 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
<?php
/**
* This is the primary functions file for the Genesis Base Theme.
*
* @package JAGenesisBaseTheme
* @since 1.0.0
* @link https://github.com/jaredatch/Genesis-Starter-Theme
*/
// Start the engine!
require_once( get_template_directory() . '/lib/init.php' ); // Start Genesis
// Child theme constants
define( 'CHILD_THEME_NAME', 'Genesis Starter Theme' );
define( 'CHILD_THEME_URL', 'https://github.com/jaredatch/Genesis-Starter-Theme' );
define( 'CHILD_THEME_VERSION', '2.0.0' );
// Add support for Genesis footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );
// Add support for custom background
add_theme_support( 'custom-background', array( 'default-color' => 'f9f9f9' ) );
// Add except to pages
add_post_type_support( 'page', 'excerpt' );
// Add support for editor stylesheet
add_editor_style( 'style-editor.css' );
// Add additional image sizes - below is simply a placeholder
add_image_size( 'mini', 50, 50, true );
// Run all the things
require_once( CHILD_DIR . '/lib/init.php' );