By default widgets placed in After Entry widget area will be shown only on single Posts in Metro Pro.
To make these appear on static Pages in addition to single Posts, in functions.php change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Hooks after-entry widget area to single posts | |
add_action( 'genesis_entry_footer', 'metro_after_post' ); | |
function metro_after_post() { | |
if ( ! is_singular( 'post' ) ) | |
return; | |
genesis_widget_area( 'after-entry', array( | |
'before' => '<div class="after-entry widget-area"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
to
To view the full content, please sign up for the membership.
Already a member? Log in below or here.