How to add schema.org SiteNavigationElement and property URL to navbar?
-
Hello,
I have the following:
<nav class="navbar navbar-default navbar-fixed-top" id="menu-nav" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <!-- Collect the nav links, forms, and other content for toggling --> <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'theme_location' => 'header-menu', 'items_wrap' => '<ul class="menu-nav navbar-nav scroll-menu">%3$s</ul>', 'container_class' => 'collapse navbar-collapse menu-header ' ) ); ?> </nav>
I understand that
temscope itemtype="https://schema.org/SiteNavigationElement"
should go to the <nav>. That’s fine.However how can I add
itemprop="url"
to the of that navbar??Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add schema.org SiteNavigationElement and property URL to navbar?’ is closed to new replies.