Created
October 19, 2015 00:15
-
-
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)
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
<?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