Skip to content

Commit

Permalink
Show "read-more" text again on latest post output (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
albig committed Jul 15, 2024
1 parent f344cac commit 7dbfede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
15 changes: 1 addition & 14 deletions template-parts/archive-event.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,7 @@

<div class="entry-content">
<?php
the_excerpt(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sunflower' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);
the_excerpt();
?>
</div><!-- .entry-content -->

Expand Down
18 changes: 2 additions & 16 deletions template-parts/content-archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,7 @@
<div class="entry-content">
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark">
<?php
the_excerpt(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sunflower' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);

the_excerpt();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'sunflower' ),
Expand All @@ -78,7 +64,7 @@
<div class="d-flex flex-row-reverse">
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark" class="continue-reading">
<?php
__( 'Continue reading', 'sunflower' );
esc_attr_e( 'Continue reading', 'sunflower' );
?>
</a>
</div>
Expand Down

0 comments on commit 7dbfede

Please sign in to comment.