Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to wrap entry titles inside a custom div in Genesis. https://sridharkatakam.com/wrap-entry-titles-inside-custom-div-genesis/
// 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