-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfunctions.php
More file actions
30 lines (24 loc) · 787 Bytes
/
functions.php
File metadata and controls
30 lines (24 loc) · 787 Bytes
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
<?php
/*
* functions.php is only needed to enable WordPress Features we would like to use later for our REST API
*/
function blank_wordpress_theme_support() {
#Enables RSS Feed Links
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'custom-logo' );
add_theme_support(
'custom-logo',
array(
'height' => 256,
'width' => 256,
'flex-height' => true,
'flex-width' => true,
'header-text' => array( 'site-title', 'site-description' ),
)
);
}
add_action( 'after_setup_theme', 'blank_wordpress_theme_support' );
/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );