Last active
September 4, 2015 16:03
-
-
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. :)
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_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