Browse Source

Try adding support for the aside post format. (#5732)

Kjell Reigstad 3 years ago
parent
commit
e03bb1c149
2 changed files with 15 additions and 0 deletions
  1. 3 0
      livro/functions.php
  2. 12 0
      livro/style.css

+ 3 - 0
livro/functions.php

@@ -23,6 +23,9 @@ if ( ! function_exists( 'livro_support' ) ) :
 		// Add support for block styles.
 		add_theme_support( 'wp-block-styles' );
 
+		// Support the "Aside" post format.
+		add_theme_support( 'post-formats', array( 'aside' ) );
+
 		// Enqueue editor styles.
 		add_editor_style( 'style.css' );
 

+ 12 - 0
livro/style.css

@@ -205,3 +205,15 @@ input:not([type="submit"]):not([type="button"]):focus {
 	font-weight: 300;
 	margin: 0.25em 0.125em 0 0;
 }
+
+/*
+ * Aside post format.
+ */
+
+.single-format-aside h1.wp-block-post-title,
+.single-format-aside h1.wp-block-post-title + .wp-block-post-date,
+.home .post_format-post-format-aside .wp-block-post-title,
+.archive .post_format-post-format-aside .wp-block-post-title,
+.blog .post_format-post-format-aside .wp-block-post-title {
+	display: none;
+}