Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created December 4, 2018 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/a0e5da493691b1e03e367752a110532c to your computer and use it in GitHub Desktop.
Save billerickson/a0e5da493691b1e03e367752a110532c to your computer and use it in GitHub Desktop.
<?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