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.

+
+ + + +
+
+
+
+ + + + + \ No newline at end of file diff --git a/poetry/style.css b/poetry/style.css index fdd505f9..2f0d778b 100644 --- a/poetry/style.css +++ b/poetry/style.css @@ -13,4 +13,9 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html Template: Text Domain: poetry Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks -*/ \ No newline at end of file +*/ + +.header-small .header-small__container.wp-block-group { + align-items: baseline; + row-gap: 1rem; +} \ No newline at end of file diff --git a/poetry/templates/404.html b/poetry/templates/404.html index 16c366f1..a2728b7c 100644 --- a/poetry/templates/404.html +++ b/poetry/templates/404.html @@ -1,4 +1,4 @@ - +
diff --git a/poetry/templates/search.html b/poetry/templates/search.html index 1e25efa2..6b659b5f 100644 --- a/poetry/templates/search.html +++ b/poetry/templates/search.html @@ -1,4 +1,4 @@ - +
diff --git a/poetry/theme.json b/poetry/theme.json index 04847bd8..a9eca501 100644 --- a/poetry/theme.json +++ b/poetry/theme.json @@ -122,7 +122,7 @@ }, "styles": { "color": { - "background": "var:preset|color|white" + "background": "var(--wp--preset--color--white)" }, "elements": { "h1": { @@ -131,7 +131,7 @@ "fontSize": "var(--wp--preset--font-size--xx-large)", "fontStyle": "normal", "fontWeight": "400", - "lineHeight": 0.8 + "lineHeight": "0.8" } }, "h2": { @@ -147,9 +147,17 @@ } } }, + "spacing": { + "padding": { + "bottom": "0px", + "left": "2rem", + "right": "2rem", + "top": "0px" + } + }, "typography": { - "fontFamily": "var:preset|font-family|inter", - "lineHeight": 2 + "fontFamily": "var(--wp--preset--font-family--inter)", + "lineHeight": "2" } }, "templateParts": [ @@ -157,11 +165,15 @@ "area": "header", "name": "header" }, + { + "area": "header", + "name": "header-small" + }, { "area": "footer", "name": "footer" } ], "version": 2, - "$schema": "https://schemas.wp.org/wp/6.1/theme.json" + "$schema": "https://schemas.wp.org/wp/6.5/theme.json" } \ No newline at end of file