Add Schema.org microdata attributes for improved structured data and SEO.
Automatically adds Schema.org microdata attributes to HTML elements for improved structured data and SEO.
| Element | Schema Type | Attributes Added |
|---|---|---|
<html> | WebPage (configurable) | itemscope, itemtype |
<header> | WPHeader | itemscope, itemtype |
<footer> | WPFooter | itemscope, itemtype |
<article> | Article (configurable) | itemscope, itemtype |
| First H1/H2 | — | itemprop="headline" |
add_filter( 'functionalities_schema_site_itemtype', function( $type ) {
if ( is_front_page() ) return 'WebSite';
if ( is_product() ) return 'Product';
return $type;
});