[wp-trac] [WordPress Trac] #46918: Link Modal Dialog of Editor adds H1-tag to site

WordPress Trac noreply at wordpress.org
Tue Jan 24 08:54:18 UTC 2023


#46918: Link Modal Dialog of Editor adds H1-tag to site
-----------------------------------+----------------------------
 Reporter:  Asgaros                |       Owner:  (none)
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:
Component:  Editor                 |     Version:  4.5
 Severity:  minor                  |  Resolution:  invalid
 Keywords:  has-patch 2nd-opinion  |     Focuses:  accessibility
-----------------------------------+----------------------------
Changes (by afercia):

 * status:  reopened => closed
 * resolution:   => invalid


Comment:

 Hi @sebastienserre. The H1 within the modal dialog is needed for
 accessibility reasons.
 Regarding SEO concerns, it is worth nothing that:
 - When the modal dialog is closed, it is hidden with `display: none`.
 Search engines should not take into consideration hidden content.
 - When the modal dialog is (temporarily) open, there may be more than one
 H1 on the page. This is fine from an SEO perspective.
 - From an accessibility perspective, when the modal dialog is open, its
 content is supposed to be the only perceivable content on the page. That's
 the reason why the modal dialog needs a heading and it needs to be a H1.

 In this episode of Ask Google Webmasters, John Mueller (Senior Search
 Analyst / Search Relations team lead at Google) explains very well that
 multiple H1 headings are fine:
 https://www.youtube.com/watch?v=zyqJJXWk0gk

 I'd tend to think the SEO plugin you're using is reporting a false
 positive.

 I hope this helps to answer your concern.

 I'm going to close again this ticket as it's not an issue. Reminder that
 conversations can continue on closed tickets.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46918#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list