create initial theme

This commit is contained in:
Ross Trottier 2024-06-20 09:33:25 -06:00
commit 5c8561558d
2 changed files with 39 additions and 0 deletions

33
functions.php Normal file
View File

@ -0,0 +1,33 @@
<?php
// enqueue styles
add_action('wp_enqueue_scripts', 'slowtwitch_register_styles');
function slowtwitch_register_styles() {
wp_enqueue_style('slowtwitch-styles', get_template_directory_uri() . '/style.css', array(), wp_get_theme()->get('version'), 'all');
}
// set up menu areas
add_action( 'init', 'slowtwitch_menus' );
function slowtwitch_menus() {
$locations = array(
'primary' => 'Primary Menu',
'footer' => 'Footer Menu'
);
register_nav_menus($locations);
}
add_action( 'widgets_init', 'my_widgets_init' );
function my_widgets_init() {
register_sidebar( array(
'id' => 'slowtwitch-front-page',
'name' => 'Widgets for Front Page',
) );
}

6
style.css Normal file
View File

@ -0,0 +1,6 @@
/*
Theme Name: Slowtwitch News Theme
Text Domain: Slowtwitch
Version: 1.0.0
Author: Ross Trottier
*/