Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created November 4, 2015 02:58
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 reasonstousegenesis/c6a7d59d8a441ce72879 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/c6a7d59d8a441ce72879 to your computer and use it in GitHub Desktop.
Add a widget area before the Loop with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add a widget area before the Loop with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/before-loop/
*/
add_action( 'genesis_before_loop', 'rtug_before_loop_widget_area' );
function rtug_before_loop_widget_area() {
genesis_widget_area( 'before-loop' ); // replace before-loop with your widget area ID
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment