Created
November 25, 2015 17:34
-
-
Save duroe5698/30432dcb08c4b6a48cae to your computer and use it in GitHub Desktop.
Add Genesis After Entry Widget on Pages Genesis WordPress
This file contains hidden or 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
| <?php | |
| add_action( 'genesis_after_entry', 'md_after_entry_widget_area' ); | |
| /*Display after-entry widget area on the genesis_after_entry action hook.*/ | |
| function md_after_entry_widget_area() { | |
| if ( ! is_singular( 'page' ) || ! current_theme_supports( 'genesis-after-entry-widget-area' ) ) { | |
| return; | |
| } | |
| genesis_widget_area( 'after-entry', array( | |
| 'before' => '<div class="after-entry widget-area">', | |
| 'after' => '</div>', | |
| ) ); | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment