-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
55 lines (47 loc) · 1.14 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
/**
* Functions
*
* @package Cata
* @since 0.1.0
*/
if ( ! function_exists( 'cata_after_setup_theme' ) ) :
/**
* After Setup Theme
*/
function cata_after_setup_theme() {
add_theme_support( 'align-wide' );
add_theme_support( 'automatic-feed-links' );
$html5_options = array(
'caption',
'comment-form',
'comment-list',
'gallery',
'search-form',
// storefront has this, but why?
'widgets',
);
/**
* Theme Supports Editor Styles
*
* @todo add other aspects of block editor support.
* @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/
*/
add_theme_support( 'editor-styles' );
add_theme_support( 'html5', $html5_options );
add_theme_support( 'responsive-embeds' );
add_theme_support( 'title-tag' );
remove_theme_support( 'core-block-patterns' );
}
endif;
add_action( 'after_setup_theme', 'cata_after_setup_theme' );
/**
* Autoload
* Register our autoloader.
*/
require_once get_template_directory() . '/includes/autoload.php';
/**
* Bootstrap
* Initialize classes we need to load.
*/
require_once get_template_directory() . '/includes/bootstrap.php';