• 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

After entry widget area on pages, Metro Pro

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 › After entry widget area on pages, Metro Pro

This topic is: not resolved

Tagged: after entry widget, Metro Pro

  • This topic has 5 replies, 4 voices, and was last updated 10 years, 11 months ago by Frank.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 21, 2014 at 3:25 am #120156
    Elaine Griffin
    Member

    Hi there,
    I've been digging around and I can't figure out how to use the after entry widget on pages instead of posts.
    Any ideas?
    Thanks!
    Elaine

    August 21, 2014 at 3:48 am #120160
    Genesis Developer
    Member

    first find this function metro_after_post() in your functions.php file and replace the current code by below code:

    function metro_after_post() {
    
        if ( ! is_singular( array('post' ,'page') ) )
        	return;
    
        genesis_widget_area( 'after-entry', array(
    		'before' => '<div class="after-entry widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
        ) );
    
    }

    If you are wanting for page only then use this

    function metro_after_post() {
    
        if ( ! is_page() )
        	return;
    
        genesis_widget_area( 'after-entry', array(
    		'before' => '<div class="after-entry widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
        ) );
    
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    August 21, 2014 at 4:04 am #120165
    Elaine Griffin
    Member

    Duh, of course! Thank you so much!
    Elaine

    March 6, 2015 at 3:01 pm #143486
    jeremyers1
    Member

    What if I am using a theme other than Metro Pro, and so my functions.php file does not have that function? Is there a genesis function I can use instead?


    Blogger and Author

    March 6, 2015 at 3:18 pm #143495
    jeremyers1
    Member

    Nevermind, I figured it out. This seems to work:

    add_filter( 'genesis_after_entry', 'aew_after_page' );
    function aew_after_page() {
    
        if ( !is_page() )
        	return;
    
        genesis_widget_area( 'after-entry', array(
    		'before' => '<div class="after-entry widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
        ));
    }
    

    Blogger and Author

    March 30, 2015 at 10:55 am #146130
    Frank
    Member

    Thanks Chinmoy, I was wondering how to do this, regards.

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