How to remove "Recent posts" from home page?
-
Hi there!
I’ve got everything I need from Bose theme, apart from one thing: I have to remove the “Recent posts” feature from home page, however this option doesn’t exist within the theme options.
So I guess I have to change the php code, however, I don’t exactly how to.
The home.php file contains the “Recent Posts” code and follows below:
<?php get_header(); ?> <div id="primary" class="content-area col-md-12"> <div id="home-title"> <span><?php _e('Recent Posts','bose'); ?></span> </div> <main id="main" class="site-main" role="main"> <?php $count = 0; ?> <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ do_action('bose-layout'); $count++; ?> <?php endwhile; ?> <?php echo "</div><!--.row-->"; ?> <?php bose_pagination(); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </main><!-- #main --> </div><!-- #primary --> <?php get_footer(); ?>
Does anyone know what I should do? Thanks a lot.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to remove "Recent posts" from home page?’ is closed to new replies.