Opened 14 months ago
Closed 14 months ago
#60351 closed defect (bug) (reported-upstream)
Core Navigation Submenu Block - "Links are not crawlable" SEO lighthouse warning
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.4.2 |
Component: | Menus | Keywords: | has-patch |
Focuses: | ui, accessibility | Cc: |
Description
Top level Core Navigation Submenu Block inserts an empty <a> tag when a link is not entered.
Submenu block can be used to open the submenu on mouse over and there is no intention of using at as a link.
Google page speed score warns - "Links are not crawlable".
It would seem that the a tag should not be used in this case.
Attachments (1)
Change History (5)
This ticket was mentioned in PR #5952 on WordPress/wordpress-develop by AbdiTolesa.
14 months ago
#1
- Keywords has-patch added
#2
@
14 months ago
Hi @frdmsun
To create a parent menu item that is not a link you need to enable the Submenus "Open on click" setting on the navigation block. This changes the tag to<button>
.
I understand from the description that you want this to work on hover, not only on click, and this is not implemented.
Issues and feature requests for blocks need to be opened in the Gutenberg GitHub repository. Can you please move it there?
You can find an overview issue about the navigation block here:
https://github.com/WordPress/gutenberg/issues/38275
#3
@
14 months ago
Thanks @poena Added it here https://github.com/WordPress/gutenberg/issues/38275#issuecomment-1914796309
Trac ticket: https://core.trac.wordpress.org/ticket/60351