diff --git a/functions.php b/functions.php index 70a5c0202..ce1e2a6cb 100644 --- a/functions.php +++ b/functions.php @@ -570,7 +570,7 @@ function twentytwenty_block_editor_settings() { * @return string $html */ function twentytwenty_read_more_tag( $html ) { - return preg_replace( '/(.*)<\/a>/iU', sprintf( '$2 "%1$s"', get_the_title( get_the_ID() ) ), $html ); + return preg_replace( '/(.*)<\/a>/iU', sprintf( '
$2 "%1$s"
', get_the_title( get_the_ID() ) ), $html ); } add_filter( 'the_content_more_link', 'twentytwenty_read_more_tag' ); diff --git a/style-rtl.css b/style-rtl.css index f6866c60e..b36b522ce 100644 --- a/style-rtl.css +++ b/style-rtl.css @@ -2969,6 +2969,10 @@ h2.entry-title { padding: calc(1.1em - 0.2rem) calc(1.44em - 0.2rem); } +.read-more-button-wrap { + margin-top: 1em; +} + /* Block: Columns ---------------------------- */ .wp-block-columns.alignfull, @@ -3421,6 +3425,10 @@ figure.wp-block-table.is-style-stripes { margin-bottom: 0; } +.read-more-button-wrap { + text-align: center; +} + .entry-content a:hover, .entry-content a:focus { text-decoration: none; diff --git a/style.css b/style.css index af05c03f0..22afd4c1a 100644 --- a/style.css +++ b/style.css @@ -2987,6 +2987,10 @@ h2.entry-title { padding: calc(1.1em - 0.2rem) calc(1.44em - 0.2rem); } +.read-more-button-wrap { + margin-top: 1em; +} + /* Block: Columns ---------------------------- */ .wp-block-columns.alignfull, @@ -3443,6 +3447,10 @@ figure.wp-block-table.is-style-stripes { margin-bottom: 0; } +.read-more-button-wrap { + text-align: center; +} + .entry-content a:hover, .entry-content a:focus { text-decoration: none;