-
-
Save billerickson/a0e5da493691b1e03e367752a110532c to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Use a div for post-info, open | |
* | |
* @author Bill Erickson | |
* @see https://www.billerickson.net/code/genesis-post-info-markup | |
* | |
*/ | |
function be_post_info_markup_open( $open, $args ) { | |
return sprintf( '<div %s>', genesis_attr( $args['context'], array(), $args ) ); | |
} | |
add_filter( 'genesis_markup_entry-meta-before-content_open', 'be_post_info_markup_open', 10, 2 ); | |
/** | |
* Use a div for post-info, close | |
* | |
* @author Bill Erickson | |
* @see https://www.billerickson.net/code/genesis-post-info-markup | |
* | |
*/ | |
function be_post_info_markup_close( $close, $args ) { | |
return '</div>'; | |
} | |
add_filter( 'genesis_markup_entry-meta-before-content_close', 'be_post_info_markup_close', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment