kachc
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Themes and Templates
In reply to: [Arcade Basic] Static homepage without blogpostsThis 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 1 replies (of 1 total)