From 5c8561558d9333ee00b4424faee9076b7ac23518 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Thu, 20 Jun 2024 09:33:25 -0600 Subject: [PATCH] create initial theme --- functions.php | 33 +++++++++++++++++++++++++++++++++ style.css | 6 ++++++ 2 files changed, 39 insertions(+) create mode 100644 functions.php create mode 100644 style.css diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..99ab825 --- /dev/null +++ b/functions.php @@ -0,0 +1,33 @@ +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', + ) ); + +} diff --git a/style.css b/style.css new file mode 100644 index 0000000..f9b154a --- /dev/null +++ b/style.css @@ -0,0 +1,6 @@ +/* + Theme Name: Slowtwitch News Theme + Text Domain: Slowtwitch + Version: 1.0.0 + Author: Ross Trottier +*/ \ No newline at end of file