Thank you in advance for any help! What I am trying to do is remove a template part from my home page after the user clicks on the pagination links from the posts, right now my template part serves as a "hero" or "featured" area, and I would like it to go away when the user looks at older posts, eg the pagination, here is what I am doing so far and it is not working, thanks!
<?php if( is_home() || is_front_page() ) : ?> <?php get_template_part( 'hero' ); ?> <?php else : ?> <?php get_template_part( 'blank' ); ?> <?php endif; ?>
as you can see i created a blank template , not sure if this was necessary , does it need to be inside the loop? thank you!