Last active
October 15, 2015 07:30
-
-
Save reasonstousegenesis/0d2b46ed631bc1cf998b to your computer and use it in GitHub Desktop.
Add content before a widget area with Genesis
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 | |
// 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