Fixes invalid code due to WP´s itemprop insertion
See https://github.com/holger1411/understrap/issues/578 for explanation.
This commit is contained in:
parent
d13eba5445
commit
d32af2864e
11
header.php
11
header.php
|
@ -28,15 +28,14 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
<div class="hfeed site" id="page">
|
||||
|
||||
<!-- ******************* The Navbar Area ******************* -->
|
||||
<div class="wrapper-fluid wrapper-navbar" id="wrapper-navbar">
|
||||
<div class="wrapper-fluid wrapper-navbar" id="wrapper-navbar" itemscope itemtype="http://schema.org/WebSite">
|
||||
|
||||
<a class="skip-link screen-reader-text sr-only" href="#content"><?php esc_html_e( 'Skip to content',
|
||||
'understrap' ); ?></a>
|
||||
<a class="skip-link screen-reader-text sr-only" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a>
|
||||
|
||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
|
||||
|
||||
<?php if ( 'container' == $container ) : ?>
|
||||
<div class="container">
|
||||
<div class="container" >
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Your site title as branding in the menu -->
|
||||
|
@ -44,11 +43,11 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
|
||||
<?php if ( is_front_page() && is_home() ) : ?>
|
||||
|
||||
<h1 class="navbar-brand mb-0"><a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<h1 class="navbar-brand mb-0"><a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
|
||||
<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><?php bloginfo( 'name' ); ?></a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
Reference in New Issue