diff --git a/header.php b/header.php index a6dcb6e..a6c0f01 100644 --- a/header.php +++ b/header.php @@ -26,7 +26,7 @@ $container = get_theme_mod( 'understrap_container_type' );
-
+
diff --git a/inc/extras.php b/inc/extras.php index e80198f..5943746 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -133,3 +133,18 @@ if ( ! function_exists( 'understrap_mobile_web_app_meta' ) ) { } } add_action( 'wp_head', 'understrap_mobile_web_app_meta' ); + +if ( ! function_exists( 'understrap_default_body_attributes' ) ) { + /** + * Adds schema markup to the body element. + * + * @param array $atts An associative array of attributes. + * @return array + */ + function understrap_default_body_attributes( $atts ) { + $atts['itemscope'] = ''; + $atts['itemtype'] = 'http://schema.org/WebSite'; + return $atts; + } +} +add_filter( 'understrap_body_attributes', 'understrap_default_body_attributes' );