• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to show NO POSTS on Eleven40 Home

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 13 years, 9 months ago by Godfather.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 3, 2012 at 8:33 am #2986
    Godfather
    Member

    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

    December 3, 2012 at 10:12 am #3008
    SoZo
    Member

    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

    December 3, 2012 at 10:29 am #3020
    Godfather
    Member

    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

    December 3, 2012 at 2:15 pm #3109
    SoZo
    Member

    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

    December 3, 2012 at 2:43 pm #3118
    Godfather
    Member

    Awesome...thanks....

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble