I want to customize layout for a particular page and remain the same for the others. Basically I want to add an HTML block for the contact us page. The HTML block appears to every page If I add the HTML block in page.php
file.
# page.php file
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/page/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile;
I am adding <section> under </header> HTML block in content-page.php
file.
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php wp233_edit_link( get_the_ID() ); ?>
</header><!-- .entry-header -->
<section>
.....
</section>
<div class="entry-content">
....
</div>