• 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

Widget area below featured article in eleven40

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 › Widget area below featured article in eleven40

This topic is: not resolved
  • This topic has 9 replies, 2 voices, and was last updated 12 years, 3 months ago by Brad Dalton.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • July 3, 2014 at 12:46 am #112789
    michaeloeser
    Member

    Hi everyone,

    I wonder how I can place a widget area right below the first (featured) article on the grid homepage of eleven40. I have one featured article followed by a two-column grid. I like the widget area display right after the frist article.

    I know how to setup widget areas and how to implement them in general but I can´t find a way to integrate a widget area after the featured article in eleven40. I assume there must be a hook or filter but I haven´t found it.

    Cheers
    Michael

    July 3, 2014 at 1:04 am #112792
    Brad Dalton
    Participant

    You can hard code it into the front-page.php file or hook it in using a custom function. http://wpsites.net/web-design/adding-new-widget-areas-in-studiopress-themes/


    Tutorials for StudioPress Themes.

    July 3, 2014 at 1:18 am #112795
    michaeloeser
    Member

    Hi Brad,

    thanks for the quick reply. That´s exactly what I thought I should do but I´m confused. See the code of my child themes home.php

    <?php
    
    remove_action( 'genesis_loop', 'genesis_do_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'		=> 'thumbnail',
    			'grid_image_class'		=> 'alignleft',
    			'grid_content_limit' => 150,
    			'more' => __( '[Continue reading]', 'genesis' ),
    	) );
    	} else {
    		genesis_standard_loop();
    	}
    
    }
    
    genesis();

    Where should I add it? And I didn´t find a proper hook for this. Any hints?

    Thanks
    Michael

    July 3, 2014 at 1:23 am #112796
    Brad Dalton
    Participant

    Before the closing genesis(); tag

    No need for a conditional tag.

    Also, the first part of the code to register the widget goes in your functions file.


    Tutorials for StudioPress Themes.

    July 3, 2014 at 1:58 am #112797
    michaeloeser
    Member

    Hmmm...not quite. When I do this in home.php

    <?php
    
    remove_action( 'genesis_loop', 'genesis_do_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'		=> 'thumbnail',
    			'grid_image_class'		=> 'alignleft',
    			'grid_content_limit' => 150,
    			'more' => __( '[Continue reading]', 'genesis' ),
    	) );
    	} else {
    		genesis_standard_loop();
    	}
    
    }
    
     function eleven40_after_featured() {
       genesis_widget_area( 'ad-homepage-only', array(
           'before' => '<div class="ad-homepage-only widget-area">',
       ) );
    }
    
    genesis();

    It displays the widget area before the first (featured) post. I want it right after this post.

    Ideas?

    July 3, 2014 at 3:01 am #112802
    Brad Dalton
    Participant

    Wheres the add_action for this function eleven40_after_featured() {

    You will need to add all the code in your functions file and use a counter to output the widget after the 1st post in the loop

    http://wpsites.net/web-design/add-content-after-any-number-of-post-excerpts-in-any-type-of-archive/


    Tutorials for StudioPress Themes.

    July 3, 2014 at 3:25 am #112813
    michaeloeser
    Member

    Awesome. Works now. But the genesis_after_entry hook seems to be invalid. I used genesis_after_post_content and it works.

    Thanks
    Michael

    July 3, 2014 at 5:18 am #112832
    Brad Dalton
    Participant

    Are you running HTML 5 or XHTML markup?


    Tutorials for StudioPress Themes.

    July 3, 2014 at 5:37 am #112833
    michaeloeser
    Member

    Still XHTML on this site

    July 3, 2014 at 6:52 am #112843
    Brad Dalton
    Participant

    That's why the hook didn't work because its the new HTML 5 loop hook http://my.studiopress.com/docs/genesis-loop-hooks-comparison/


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 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