How to show NO POSTS on Eleven40 Home

Community Forums Forums Design Tips and Tricks How to show NO POSTS on Eleven40 Home

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Godfather 1 year, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2986

    Godfather
    Participant
    Post count: 11

    Built a page with a couple of custom widgets but the “home” page still pulls posts.

    When I change to a non-active category I get, “Sorry, no posts matched your criteria.”

    How can I have the page not pull any posts? (and not get the “sorry” line).

    Thanks,

    Fred

    #3008

    SoZo
    Moderator
    Post count: 1573

    How did you make your page with the custom widgets the home page?

    It helps immensely if you include a link to your site with all questions.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #3020

    Godfather
    Participant
    Post count: 11

    Sorry SoZo. It is a client site site (so it is not live yet). I mean that I just “registered” a widget on the home php file (added a widget).

    You can see the same effect here  http://henry.my-website-demo.com/

    Try to lose it pulling posts

    #3109

    SoZo
    Moderator
    Post count: 1573

    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); is already included in home.php but then the grid loop is added so you need to remove the grid loop

    add_action( ‘genesis_loop’, ‘eleven40_grid_loop_helper’ );
    /** Add support for Genesis Grid Loop */
    function eleven40_grid_loop_helper() {

    if ( function_exists( ‘genesis_grid_loop’ ) ) {
    genesis_grid_loop( array(
    ‘features’ => 1,
    ‘feature_image_size’ => 0,
    ‘feature_image_class’ => ‘alignleft post-image’,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => ‘grid-thumbnail’,
    ‘grid_image_class’ => ‘alignnone’,
    ‘grid_content_limit’ => 250,
    ‘more’ => __( ‘[Continue reading]‘, ‘genesis’ ),
    ) );
    } else {
    genesis_standard_loop();
    }

    }


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #3118

    Godfather
    Participant
    Post count: 11

    Awesome…thanks….

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

You must be logged in to reply to this topic.