Skip to content

Instantly share code, notes, and snippets.

@QROkes
Created September 14, 2015 05:52
Show Gist options
  • Save QROkes/c31e7f92a7a392fcb394 to your computer and use it in GitHub Desktop.
Save QROkes/c31e7f92a7a392fcb394 to your computer and use it in GitHub Desktop.
Change squema.org markup (Wordpress - Genesis Framework)
// Change schema.org markup
function qr_body_schema( $attr ) {
$attr['class'] = join( ' ', get_body_class() );
$attr['itemscope'] = 'itemscope';
$attr['itemtype'] = 'http://schema.org/Restaurant';
return $attr;
}
add_filter( 'genesis_attr_body', 'qr_body_schema', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment