Edit File by line
/home/barbar84/www/wp-conte.../themes/twentytw...
File: single.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The template for displaying all single posts
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Twenty_Twenty_One
[7] Fix | Delete
* @since Twenty Twenty-One 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
get_header();
[11] Fix | Delete
[12] Fix | Delete
/* Start the Loop */
[13] Fix | Delete
while ( have_posts() ) :
[14] Fix | Delete
the_post();
[15] Fix | Delete
[16] Fix | Delete
get_template_part( 'template-parts/content/content-single' );
[17] Fix | Delete
[18] Fix | Delete
if ( is_attachment() ) {
[19] Fix | Delete
// Parent post navigation.
[20] Fix | Delete
the_post_navigation(
[21] Fix | Delete
array(
[22] Fix | Delete
/* translators: %s: parent post link. */
[23] Fix | Delete
'prev_text' => sprintf( __( '<span class="meta-nav">Published in</span><span class="post-title">%s</span>', 'twentytwentyone' ), '%title' ),
[24] Fix | Delete
)
[25] Fix | Delete
);
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
// If comments are open or there is at least one comment, load up the comment template.
[29] Fix | Delete
if ( comments_open() || get_comments_number() ) {
[30] Fix | Delete
comments_template();
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
// Previous/next post navigation.
[34] Fix | Delete
$twentytwentyone_next = is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' );
[35] Fix | Delete
$twentytwentyone_prev = is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' );
[36] Fix | Delete
[37] Fix | Delete
$twentytwentyone_next_label = esc_html__( 'Next post', 'twentytwentyone' );
[38] Fix | Delete
$twentytwentyone_previous_label = esc_html__( 'Previous post', 'twentytwentyone' );
[39] Fix | Delete
[40] Fix | Delete
the_post_navigation(
[41] Fix | Delete
array(
[42] Fix | Delete
'next_text' => '<p class="meta-nav">' . $twentytwentyone_next_label . $twentytwentyone_next . '</p><p class="post-title">%title</p>',
[43] Fix | Delete
'prev_text' => '<p class="meta-nav">' . $twentytwentyone_prev . $twentytwentyone_previous_label . '</p><p class="post-title">%title</p>',
[44] Fix | Delete
)
[45] Fix | Delete
);
[46] Fix | Delete
endwhile; // End of the loop.
[47] Fix | Delete
[48] Fix | Delete
get_footer();
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function