• 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)
  • Moderator t-p

    (@t-p)

    lisa

    (@contentiskey)

    do you want to remove all posts from display on front page or just the words “Recent Posts”

    in SETTINGS>READING what is the setting for front page?

    Thread Starter Thebigspire

    (@thebigspire)

    Hi Tara!
    I’ll try to have a look at it, unfortunately as I work full time and study by the evenings it gets a bit hard, but I’ll try! Thanks!

    Hi contentiskey,
    Thanks for you answer!
    I’d like to remove all the posts. When I access Settings > Reading, what I find is on the picture below:

    https://s10.postimg.org/jmwbsnhzd/Capture.png

    If I select “A static page (select below)” and don’t select any page, WordPress selects back automatically “Your latest posts”.
    If I select “A static page (select below)” and select a page, then this page appears on that area, but I’d really like to have nothing over this space on my website.

    Why not create & publish a new page called “Home” and leave the content area blank. Then use this page as your static front page in Settings -> Reading.

    Thread Starter Thebigspire

    (@thebigspire)

    Hi esmi!

    I tried your suggestion, but it didn’t work. I removed all the widgets and left the page blank, however, the page appears like this now:

    https://s21.postimg.org/ree1zck93/Capture.png

    Any other suggestion?

    Thread Starter Thebigspire

    (@thebigspire)

    Hi there!

    I installed Microthemer plugin. It’s a plugin that edits CSS in a pretty easy way. As I’m a beginner when it comes to coding, I tried some tricks with Microthemer and I finally managed to hide the “Recent Posts” feature ??

    So I’ve got one more question and I promise this is the last one. The code generated by the changes I made is the one below. Could you guys check if there’s any problem with it or I can keep going with my websites’s development?

    /*** Microthemer Styles ***/
    
    /* =Pages
    -------------------------------------------------------------- */
    /* Test Page 1 */
    span {
    	display: none !important;
    }
    /* Test Page 2 */
    div.col-md-4 aside.widget {
    	display: none !important;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove "Recent posts" from home page?’ is closed to new replies.