Last active
May 8, 2019 16:13
-
-
Save anythinggraphic/d1c01f9a532dd9a901bbfc28a7179fde to your computer and use it in GitHub Desktop.
Genesis: Add structural wraps to entry-header
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 | |
add_action( 'genesis_entry_header', 'ag_header_wrap_open', 5 ); | |
function ag_header_wrap_open() { | |
echo '<div class="wrap align-center">'; | |
} | |
add_action( 'genesis_entry_header', 'ag_header_wrap_close', 14 ); | |
function ag_header_wrap_close() { | |
echo '</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment