Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Last active October 15, 2015 07:30
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/0d2b46ed631bc1cf998b to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/0d2b46ed631bc1cf998b to your computer and use it in GitHub Desktop.
Add content before a widget area with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add content before a widget area with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/before-widget-area/
*/
add_action( 'genesis_before_home-top_widget_area', 'rtug_before_widget_area' ); // replace home-top with your widget area ID
function rtug_before_widget_area() {
echo '<p><strong>A piece of extra content before the widgets</strong></p>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment