Skip to content

Instantly share code, notes, and snippets.

@jonschr
Created October 19, 2015 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonschr/216a6bd9a25fee67d035 to your computer and use it in GitHub Desktop.
Save jonschr/216a6bd9a25fee67d035 to your computer and use it in GitHub Desktop.
Display a widget somewhere on a site (this example shows it before the footer)
<?php
//* Don't include the opening php tag
//* Display a widget area before the footer
add_action( 'genesis_before_footer', 'prefix_show_your_widget_area' );
function prefix_show_your_widget_area () {
genesis_widget_area( 'your-widget-area', array(
'before' => '<div>', // markup before the widget
'after' => '</div>', // markup after the widget
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment