Last active
August 29, 2015 14:20
-
-
Save reasonstousegenesis/700385dd16b4236dc60e to your computer and use it in GitHub Desktop.
Add content before the entry 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 the entry with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-before-entry/ | |
*/ | |
add_action( 'genesis_before_entry', 'rtug_before_entry' ); | |
function rtug_before_entry() { | |
echo '<p>A line of text at the top of the entry</p>'; | |
} |
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 the entry with Genesis (XHTML) | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-before-entry/ | |
*/ | |
add_action( 'genesis_before_post', 'rtug_before_entry' ); | |
function rtug_before_entry() { | |
echo '<p>A line of text at the top of the entry</p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment