Last active
December 23, 2015 03:39
-
-
Save bradpotter/6575179 to your computer and use it in GitHub Desktop.
Change attributes for home page content element
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
add_filter( 'genesis_attr_content', 'bp_attributes_content' ); | |
/** | |
* Change attributes for home page main content element. | |
* | |
*/ | |
function bp_attributes_content( $attributes ) { | |
//* Home page main content microdata | |
if ( is_home() ) { | |
$attributes['itemtype'] = 'http://schema.org/Blog'; | |
} | |
return $attributes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment