Try adding support for the aside post format. (#5732)
This commit is contained in:
parent
05d1ac4484
commit
e03bb1c149
2 changed files with 15 additions and 0 deletions
|
@ -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' );
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue