Skip to content

Instantly share code, notes, and snippets.

@davechu
Last active September 4, 2015 16:03
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/da55cc2304299584526f to your computer and use it in GitHub Desktop.
Save davechu/da55cc2304299584526f to your computer and use it in GitHub Desktop.
You can add any attribute you like to the HEAD tag. As you can see, I added a joke one here under the real one. :)
add_filter( 'genesis_attr_head', 'dc_modify_head_attr' );
function dc_modify_head_attr( $attributes ) {
$attributes['itemtype'] = 'http://schema.org/Article';
$attributes['bogusnewthing'] = 'brandnewwhatever';
return $attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment