-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
22 lines (20 loc) · 780 Bytes
/
functions.php
File metadata and controls
22 lines (20 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
if ( ! function_exists( 'bytes100_setup' ) ) :
function bytes100_setup() {
load_theme_textdomain( '100-bytes' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
add_theme_support( 'html5', array( 'search-form', 'gallery', 'caption', 'style', 'script' ) );
add_theme_support( 'responsive-embeds' );
}
endif;
add_action( 'after_setup_theme', 'bytes100_setup' );
function bytes100_enqueue_styles() {
wp_enqueue_style(
'bytes100-style',
get_stylesheet_uri(),
array(),
file_exists( get_stylesheet_directory() . '/style.css' ) ? filemtime( get_stylesheet_directory() . '/style.css' ) : false
);
}
add_action( 'wp_enqueue_scripts', 'bytes100_enqueue_styles' );