Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a widget area to a Genesis page
//* 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