Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/twentyni...
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_Nineteen
[7] Fix | Delete
* @since Twenty Nineteen 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
get_header();
[11] Fix | Delete
?>
[12] Fix | Delete
[13] Fix | Delete
<div id="primary" class="content-area">
[14] Fix | Delete
<main id="main" class="site-main">
[15] Fix | Delete
[16] Fix | Delete
<?php
[17] Fix | Delete
[18] Fix | Delete
// Start the Loop.
[19] Fix | Delete
while ( have_posts() ) :
[20] Fix | Delete
the_post();
[21] Fix | Delete
[22] Fix | Delete
get_template_part( 'template-parts/content/content', 'single' );
[23] Fix | Delete
[24] Fix | Delete
if ( is_singular( 'attachment' ) ) {
[25] Fix | Delete
// Parent post navigation.
[26] Fix | Delete
the_post_navigation(
[27] Fix | Delete
array(
[28] Fix | Delete
/* translators: %s: Parent post link. */
[29] Fix | Delete
'prev_text' => sprintf( __( '<span class="meta-nav">Published in</span><span class="post-title">%s</span>', 'twentynineteen' ), '%title' ),
[30] Fix | Delete
)
[31] Fix | Delete
);
[32] Fix | Delete
} elseif ( is_singular( 'post' ) ) {
[33] Fix | Delete
// Previous/next post navigation.
[34] Fix | Delete
the_post_navigation(
[35] Fix | Delete
array(
[36] Fix | Delete
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next Post', 'twentynineteen' ) . '</span> ' .
[37] Fix | Delete
'<span class="screen-reader-text">' . __( 'Next post:', 'twentynineteen' ) . '</span> <br/>' .
[38] Fix | Delete
'<span class="post-title">%title</span>',
[39] Fix | Delete
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Post', 'twentynineteen' ) . '</span> ' .
[40] Fix | Delete
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentynineteen' ) . '</span> <br/>' .
[41] Fix | Delete
'<span class="post-title">%title</span>',
[42] Fix | Delete
)
[43] Fix | Delete
);
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
// If comments are open or we have at least one comment, load up the comment template.
[47] Fix | Delete
if ( comments_open() || get_comments_number() ) {
[48] Fix | Delete
comments_template();
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
endwhile; // End the loop.
[52] Fix | Delete
?>
[53] Fix | Delete
[54] Fix | Delete
</main><!-- #main -->
[55] Fix | Delete
</div><!-- #primary -->
[56] Fix | Delete
[57] Fix | Delete
<?php
[58] Fix | Delete
get_footer();
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function