Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show "read-more" text again on latest post output #659

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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