Minimum theme landing page with no blog post

Community Forums Forums Design Tips and Tricks Minimum theme landing page with no blog post

This topic is: not resolved

This topic contains 7 replies, has 5 voices, and was last updated by  Dan B 1 year, 5 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #45015

    sugarbeatbc
    Participant
    Post count: 9

    Good 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.com

    Thanks,

    Barb

    http://bakerplayblog.com
    #45018

    rfmeier
    Participant
    Post count: 603

    Hello,

    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.


    #45712

    Beeke
    Participant
    Post count: 5

    Hi,

    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

    #45747

    rfmeier
    Participant
    Post count: 603

    Beeke,

    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?


    #45791

    Beeke
    Participant
    Post count: 5

    No, 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…?

    #45818

    vividvilla
    Participant
    Post count: 34

    Hi 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 here

    #45919

    Beeke
    Participant
    Post count: 5

    Thank you so much Vivek! That really worked. I think I had to remove one additional brace, but now it’s gone.

    #46530

    Dan B
    Participant
    Post count: 26

    Found 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
    Freelance web development and design for non-profits and small businesses.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.