-
-
Save srikat/ca035333d25b84a3043b to your computer and use it in GitHub Desktop.
How to display After Entry widget area on Pages in Metro Pro. https://sridharkatakam.com/how-to-display-after-entry-widget-area-on-pages-in-metro-pro/
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>', | |
) ); | |
} |
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 and static Pages | |
add_action( 'genesis_entry_footer', 'metro_after_post' ); | |
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>', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment