Last active
April 9, 2019 16:27
-
-
Save srikat/5229bd90b6e5ae9c58bb345384b68678 to your computer and use it in GitHub Desktop.
How to wrap entry titles inside a custom div in Genesis. https://sridharkatakam.com/wrap-entry-titles-inside-custom-div-genesis/
This file contains hidden or 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
// Add custom opening div for post title | |
add_action( 'genesis_entry_header', 'sk_do_post_title_before', 7 ); | |
function sk_do_post_title_before() { | |
echo '<div class="my-entry-title">'; | |
} | |
// Add custom closing div for post title | |
add_action( 'genesis_entry_header', 'sk_do_post_title_after' ); | |
function sk_do_post_title_after() { | |
echo '</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment