Created
July 29, 2014 14:42
-
-
Save davechu/b20f8e182c09637ee8f7 to your computer and use it in GitHub Desktop.
For Veit. Here's how to change itemprop for site title or entry title in Genesis. These go in your functions.php of your child theme.
This file contains hidden or 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_site-title', 'dc_veit_site_title' ); | |
function dc_veit_site_title( $attributes ) { | |
$attributes['itemprop'] = 'nonheadline'; | |
return $attributes; | |
} | |
add_filter( 'genesis_attr_entry-title', 'dc_veit_entry_title' ); | |
function dc_veit_entry_title( $attributes ) { | |
$attributes['itemprop'] = 'whatever'; | |
return $attributes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for posting this!