-
Notifications
You must be signed in to change notification settings - Fork 12
/
functions.php
55 lines (44 loc) · 2.33 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
<?php
/**
* wolf functions and definitions
*
* @package wolf
*/
if ( ! isset( $content_width ) )
$content_width = 700; /* pixels */
if ( ! function_exists( 'wolf_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
function wolf_setup() {
require get_template_directory() . '/inc/template-tags.php'; // Custom template tags for this theme.
require get_template_directory() . '/inc/extras.php'; // Custom functions that act independently of the theme templates
require get_template_directory() . '/inc/customizer.php'; //Customizer additions
require get_template_directory() . '/inc/htaccess.php'; // HTML5 Boilerplate .htaccess
require get_template_directory() . '/inc/widgets.php'; // Sidebars and widgets
require get_template_directory() . '/inc/scripts.php'; // Scripts and stylesheets
require get_template_directory() . '/inc/tha-hooks.php'; // Load Theme Hook Alliance files
require get_template_directory() . '/inc/jetpack.php'; // Load Jetpack compatibility file.
require get_template_directory() . '/inc/removals.php'; // Our functions that remove stuff from WP
require_once( get_template_directory() . '/inc/class-tgm-plugin-activation.php'); // Load TGM Plugin activation
require get_template_directory() . '/inc/plugin-activation.php'; // Loads our functions to configure TGM Plugin activation
require get_template_directory() . '/inc/shortcodes.php'; // Loads our theme shortcodes
add_theme_support( 'automatic-feed-links' ); //Add default posts and comments RSS feed links to head
add_theme_support( 'post-thumbnails' ); //Enable support for Post Thumbnails
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); //Enable support for Post Formats
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'wolf' ),
//'footer' => __( 'Footer Menu', 'wolf' ),
//'top' => __( 'Top Menu', 'wolf' ),
) );
/**
* Make theme available for translation
* Translations can be filed in the /languages/ directory
* If you're building a theme based on wolf, use a find and replace
* to change 'wolf' to the name of your theme in all the template files
*/
load_theme_textdomain( 'wolf', get_template_directory() . '/languages' );
add_editor_style( 'editor-style.css' );
}
endif; // wolf_setup
add_action( 'after_setup_theme', 'wolf_setup' );