Adding schema.org markup to wordpress menus
-
I spend some hours trying to add the schema.org markup to WordPress menus but couldn′t achieve a solution.
The code should be like this:
<nav class="nav-primary" role="navigation" itemscope="itemscope" itemtype="https://schema.org/SiteNavigationElement">
But WordPress only allows customize the container: https://codex.www.ads-software.com/Function_Reference/wp_nav_menu
My ouput now is:
<nav class="vi-top-menu">
I still need to add role=”navigation” and the schema markup.
Any advice or help on this?
Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding schema.org markup to wordpress menus’ is closed to new replies.