Viewing 5 replies - 1 through 5 (of 5 total)
  • If you figure this out, please let me know! I’ve been screwing around with the code for days trying to remove them!

    I am trying to figure this out as well. I have seen others with the same theme without it….so I am assuming it can be done!

    No1 yet? I would love to know how to do this as well..

    have you tried:

    Settings > Reading > Front Page Displays: A Static Page

    ?

    This worked for me, but I’m not sure if it will affect other pages with posts (I don’t use any posts on my site).

    Go to Dashboard > Appearance > Editor
    Choose “front-page.php” on the right side
    Delete the following code near the bottom of the file:

    <div class="container">
    		<div class="row">
    			<div id="primary" <?php bavotasan_primary_attr(); ?>>
                    <?php
    				if ( have_posts() ) {
    					while ( have_posts() ) : the_post();
    						get_template_part( 'content', get_post_format() );
    					endwhile;
    
    					bavotasan_pagination();
    				} else {
    					if ( current_user_can( 'edit_posts' ) ) {
    						// Show a different message to a logged-in user who can add posts.
    						?>
    						<article id="post-0" class="post no-results not-found">
    							<h1 class="entry-title"><?php _e( 'Nothing Found', 'arcade' ); ?></h1>
    
    							<div class="entry-content description clearfix">
    								<p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'arcade' ), admin_url( 'post-new.php' ) ); ?></p>
    							</div><!-- .entry-content -->
    						</article>
    						<?php
    					} else {
    						get_template_part( 'content', 'none' );
    					} // end current_user_can() check
    				}
    				?>
    			</div><!-- #primary.c8 -->
    			<?php get_sidebar(); ?>
    		</div>
    	</div>

    Hope that works!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Static homepage without blogposts’ is closed to new replies.