Headings structure (good for accessibility)
-
Hi there,
I ran into an issue in my theme when using Jetpack to display sharing icons and related posts.
Problem:
As I would like to keep the headings structure consistent and don’t want to skip the heading levels, I tried to modify the output of the above modules to adapt the HTML heading tag used in there.It was easy to modify output for sharing icons via
jetpack_sharing_display_markup
filter hook, however, there is no such hook for related posts. It seems I can do that with JavaScript only, which is not a preferred way for me.Example:
My post main heading is H1.If there is no subheading in the post content and sharing and related posts are enabled, they both have heading H3 applied.
This is obviously skipping H2 level which is not really good even from accessibility point of view.
Suggestion:
Could you reconsider titling these (and possibly other) sections with H2. It seems to be more appropriate globally as it will cause less issues with headings structure.Thanks and regards,
Oliver
- The topic ‘Headings structure (good for accessibility)’ is closed to new replies.