• 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

add featured top to eleven40 theme

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 › General Discussion › add featured top to eleven40 theme

This topic is: resolved

Tagged: Eleven40, featured top widget

  • This topic has 4 replies, 3 voices, and was last updated 13 years, 2 months ago by scottz.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 4, 2013 at 6:03 pm #9610
    scottz
    Member

    I just installed the eleven40 theme and want to add a 'featured top' widget like I use in so many of the other G themes I've built with. Basically I want to re-create this site, but the eleven40 has an 'after post' widget which doesn't seem to do much. I'd like to use a 'homepage' widget to add my slider and other widgets so I can customize my homepage.

    What am I doing wrong here? I've tried the register widget area thing, but I'm not that adept at the php stuff.

    http://youthhockeyhub.com/

    URL
    http://youthhockeyhub.com/beta/

    January 4, 2013 at 6:12 pm #9616
    Susan
    Moderator

    Try this:

    http://www.briangardner.com/home-widget-area-eleven40/

    January 5, 2013 at 12:49 pm #9764
    scottz
    Member

    That's great, worked like a charm. Easy. However, how do I now get rid of the main blog feed that comes after my 'home-featured' widget?

     

    January 5, 2013 at 10:51 pm #9884
    Chris Cree
    Participant

    If you don't want the grid loop below the widget area you added to the home page, just delete it from your home.php file. So instead of adding the code from Brian's post you end up replacing the loop that's there with Brian's code.

    If you remove this it should do it:

    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' ),
    			'posts_per_page' => 5,
    		) );
    	} else {
    		genesis_standard_loop();
    	}
    
    }

    Keep in mind you'll still want to keep this line of code in your home.php file:

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    January 6, 2013 at 1:37 pm #9969
    scottz
    Member

    Thanks Chris....editing php always makes me nervous. It worked. I guess I learn a little but each time.

    You guys are great!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘add featured top to eleven40 theme’ is closed to new 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