From f5092fd09ed93c89be6386217b577dd0a85d68c1 Mon Sep 17 00:00:00 2001 From: Adriana Leites <45805842+adrianaleites@users.noreply.github.com> Date: Fri, 17 May 2024 14:56:13 +0100 Subject: [PATCH] Poetry: add alternative header part (#174) --- poetry/functions.php | 59 ++++++++++++++++++++++++++++++++++ poetry/parts/header-small.html | 25 ++++++++++++++ poetry/style.css | 7 +++- poetry/templates/404.html | 2 +- poetry/templates/search.html | 2 +- poetry/theme.json | 22 ++++++++++--- 6 files changed, 109 insertions(+), 8 deletions(-) create mode 100644 poetry/functions.php create mode 100644 poetry/parts/header-small.html diff --git a/poetry/functions.php b/poetry/functions.php new file mode 100644 index 00000000..b8b31ca3 --- /dev/null +++ b/poetry/functions.php @@ -0,0 +1,59 @@ +get( 'Version' ); + + $version_string = is_string( $theme_version ) ? $theme_version : false; + wp_register_style( + 'poetry-style', + get_template_directory_uri() . '/style.css', + array(), + $version_string + ); + + // Enqueue theme stylesheet. + wp_enqueue_style( 'poetry-style' ); + } + +endif; + +add_action( 'wp_enqueue_scripts', 'poetry_styles' ); diff --git a/poetry/parts/header-small.html b/poetry/parts/header-small.html new file mode 100644 index 00000000..0a332c2f --- /dev/null +++ b/poetry/parts/header-small.html @@ -0,0 +1,25 @@ + +
Food for thoughts
+ + + +A collection of valuable thoughts by a very egocentric person.
+