Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SiteNavigationElement producing incorrect URLs for schema markup #440

Open
syclone opened this issue Oct 19, 2019 · 1 comment
Open

SiteNavigationElement producing incorrect URLs for schema markup #440

syclone opened this issue Oct 19, 2019 · 1 comment

Comments

@syclone
Copy link

syclone commented Oct 19, 2019

Steps to reproduce the issue:

Run a test on any nav using the wp-bootstrap/wp-bootstrap-navwalker

Google Schema Testing Tool: https://search.google.com/structured-data/testing-tool

What I expected:

Correct URLs to be shown

What happened instead:

Incorrect URL is shown in schema markup. Eg. https://www.example.com/menu-item-2787

The menu Id is used as the URL path.

@syclone
Copy link
Author

syclone commented Oct 19, 2019

I am not sure this feature is needed as most WordPress sites are running a plugin that will do this for you. It also causes conflict with SEO plugins. I suggest removing itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement"

syclone referenced this issue Oct 19, 2019
Remove ` itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement"` as it is not functional, unnecessary (out of scope) and causes conflict with SEO plugins with no way to disable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant