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

This commit is contained in:
Kjell Reigstad 2022-03-23 12:24:26 -04:00 committed by GitHub
parent 05d1ac4484
commit e03bb1c149
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -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' );

View file

@ -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;
}