Hello there,
Copy the home.php from parent theme to child theme. Then edit it. Go to the following line of code:
<?php if ( have_posts() ) : ?>
<div class="posts-layout">
Insert your text right before div.posts-layout.
Regards,
Kharis
Sorry I still can’t get it to show up. I’m extremely new to wordpress/html.The code in the home.php file is below. I put “Test” as the heading I want to show up on my posts page. I appreciate your help:
<?php
/**
* The home template file.
*
* @package Sydney
*/
get_header(); ?>
<div id=”primary” class=”content-area col-md-9 <?php echo sydney_blog_layout(); ?>”>
<main id=”main” class=”post-wrap” role=”main”>
<?php if ( have_posts() ) : ?>
<h1> “Test” </h1>
<div class=”posts-layout”>
<?php while ( have_posts() ) : the_post(); ?>
<?php
get_template_part( ‘content’, get_post_format() );
?>
<?php endwhile; ?>
</div>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( ‘content’, ‘none’ ); ?>
<?php endif; ?>
</main><!– #main –>
</div><!– #primary –>
<?php
if ( get_theme_mod(‘blog_layout’,’classic’) == ‘classic’ ) :
get_sidebar();
endif;
?>
<?php get_footer(); ?>
Hello there,
Your specified text is being displayed now http://awesomescreenshot.com/0725ue9d87.
Try to clear your web browser’s cache. Or visit your site on other browser.
Regards,
Kharis
Ah thanks I see it now! I appreciate your help. Must have been the cache causing it not to display on my browser.