2024-05-29 01:20:50 +00:00
|
|
|
<?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() {
|
2024-05-30 16:23:26 +00:00
|
|
|
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');
|
2024-05-29 01:20:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
add_action( 'init', 'slowtwitch_menus' );
|
|
|
|
|
|
|
|
function slowtwitch_menus() {
|
|
|
|
$locations = array(
|
|
|
|
'primary' => 'Primary Menu',
|
|
|
|
'footer' => 'Footer Menu'
|
|
|
|
);
|
|
|
|
|
|
|
|
register_nav_menus($locations);
|
|
|
|
}
|
|
|
|
|
2024-05-31 19:20:12 +00:00
|
|
|
function my_widgets_init() {
|
|
|
|
|
|
|
|
register_sidebar( array(
|
|
|
|
'id' => 'slowtwitch-front-page',
|
|
|
|
'name' => 'Widgets for Front Page',
|
|
|
|
) );
|
|
|
|
|
|
|
|
}
|
|
|
|
add_action( 'widgets_init', 'my_widgets_init' );
|
|
|
|
|
2024-05-29 01:20:50 +00:00
|
|
|
?>
|