37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
add_action('after_setup_theme', 'slowtwitch_theme_support');
|
|
|
|
function slowtwitch_theme_support() {
|
|
add_theme_support('title-tag');
|
|
}
|
|
|
|
add_action('wp_enqueue_scripts', 'slowtwitch_register_styles');
|
|
|
|
function slowtwitch_register_styles() {
|
|
wp_enqueue_style('slowtwitch-styles', get_template_directory_uri() . '/style.css', array('slowtwitch-skeleton', 'slowtwitch-normalize'), wp_get_theme()->get('version'), 'all');
|
|
wp_enqueue_style('slowtwitch-skeleton', get_template_directory_uri() . '/assets/css/skeleton.css', array(), '1.0', 'all');
|
|
wp_enqueue_style('slowtwitch-normalize', get_template_directory_uri() . '/assets/css/normalize.css', array(), '1.0', 'all');
|
|
}
|
|
|
|
add_action( 'init', 'slowtwitch_menus' );
|
|
|
|
function slowtwitch_menus() {
|
|
$locations = array(
|
|
'primary' => 'Primary Menu',
|
|
'footer' => 'Footer Menu'
|
|
);
|
|
|
|
register_nav_menus($locations);
|
|
}
|
|
|
|
function my_widgets_init() {
|
|
|
|
register_sidebar( array(
|
|
'id' => 'slowtwitch-front-page',
|
|
'name' => 'Widgets for Front Page',
|
|
) );
|
|
|
|
}
|
|
add_action( 'widgets_init', 'my_widgets_init' );
|
|
|
|
?>
|