Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum theme landing page with no blog post
Tagged: blog posts, Minimum theme
- This topic has 8 replies, 6 voices, and was last updated 8 years, 7 months ago by
jeffhughart.
-
AuthorPosts
-
June 10, 2013 at 7:41 am #45015
sugarbeatbc
MemberGood Morning,
How do I prevent any of the blog posts from showing on the landing page? I
am using a Minimum theme and I have replaced the featured image with a
slider. In other words, I want the blog to be accessed through the menu
only. I'm playing with ideas on http://bakerplayblog.comThanks,
Barb
http://bakerplayblog.comJune 10, 2013 at 7:47 am #45018rfmeier
MemberHello,
This can be done by creating a static page in WordPress. The documentation can be found here;
http://codex.wordpress.org/Creating_a_Static_Front_Page
I hope this helps or points you in the right direction.
June 13, 2013 at 12:58 pm #45712Beeke
MemberHi,
I have the same problem: the Minimum theme only seems to display the featured image, if the reading settings are set to "latest posts". How would I add static content to my home page?
Thanks, Beeke
June 13, 2013 at 3:51 pm #45747rfmeier
MemberBeeke,
If you have selected 'latest posts', then WordPress will display the latest posts. The link above will describe how to create a static home page and display your latest posts on a blog page.
Is this what you are attempting?
June 13, 2013 at 6:58 pm #45791Beeke
MemberNo, I don't want to show any posts at all. Infact I am not even sure, I will write a blog post at all... I would like to have my homepage setup with a large featured image or slider and some static content. I filed a ticket last night, because I couldn't get my featured image to show, and it turned out that this was because I had my page setup to show a static front page. When I turned it back to latest post, the image came right up.
My domain is http://www.greentara.ca, if that helps...?
June 14, 2013 at 12:01 am #45818vividvilla
MemberHi Beeke,You need to remove the Blog Post loop from home.php file.Remove this code
add_action( 'genesis_loop', 'minimum_grid_loop_helper' );
function minimum_grid_loop_helper() {if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 0,
'feature_image_size' => 'featured',
'feature_image_class' => 'post-image',
'feature_content_limit' => 0,
'grid_image_size' => 0,
'grid_image_class' => 'alignnone',
'grid_content_limit' => 250,
'more' => __( '[Read more]', 'minimum' ),
) );
} else {
genesis_standard_loop();
}
Vivek R – @vividvilla
Genesis Child Theme Designer and Blogger at WPStuffs.
For affordable Genesis Child Theme design and Customization Contact me hereJune 14, 2013 at 9:59 am #45919Beeke
MemberThank you so much Vivek! That really worked. I think I had to remove one additional brace, but now it's gone.
June 18, 2013 at 8:46 am #46530Dan B
ParticipantFound this elsewhere in the forums and it did the job brilliantly. With this, you can either limit your posts on the frontpage to anything 0 or higher.
`
/** Change the number of posts on homepage */
add_action( 'pre_get_posts', 'minimum_home_posts' );
function minimum_home_posts( $query ) {
if( $query->is_main_query() && !is_admin() && is_home () ) {
$query->set( 'posts_per_page', '2' ); // change this number to reflect the limits you want to impose
}
}
`
Dan @ ZindaMedia
Marketing, Fundraising and Social Media strategies for non-profits.July 24, 2016 at 7:51 pm #190140jeffhughart
Memberwhat file did you edit?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.