Skip to content

Instantly share code, notes, and snippets.

@davechu
Created November 24, 2014 14:10
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/64ab01cb45f4fb000371 to your computer and use it in GitHub Desktop.
Save davechu/64ab01cb45f4fb000371 to your computer and use it in GitHub Desktop.
For Dipak. These are hardcoded, but this example shows that you can replace them. See more attributes to alter in \genesis\lib\functions\markup.php
/** I'm also wondering if plain "//" may also work, the idea to make the URL security-agnostic, so to speak. **/
add_filter( 'genesis_attr_body', 'dc_dipak_body_attr' );
function dc_dipak_body_attr( $attributes ) {
$attributes['itemtype'] = 'https://schema.org/WebPage';
return $attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment