Last active
April 11, 2017 17:40
-
-
Save nutsandbolts/7533114 to your computer and use it in GitHub Desktop.
Add a widget area to a Genesis page
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
//* Add the page widget in the content - HTML5 | |
add_action( 'genesis_entry_footer', 'nabm_add_page_content' ); | |
function nabm_add_page_content() { | |
if ( is_page('ID') ) | |
genesis_widget_area ('page-widget', array( | |
'before' => '<div class="page-widget"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment