Skip to content

Instantly share code, notes, and snippets.

@davechu
Created July 29, 2014 14:42
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 davechu/b20f8e182c09637ee8f7 to your computer and use it in GitHub Desktop.
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.
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;
}
@pixelador
Copy link

Thanks for posting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment