Problem/Motivation
First of all I would like to compliment the maintainers of the theme. The theme is attractive and loads fast. Thank you for your work.
We used the theme on a project and noticed that the Main Menu and Breadcrumbs (contrib module) are given H2 tags on a page. I am wondering why this is done? From an SEO perspective this is not beneficial.
I do not see this as a bug, so I filed it as a support request. Please change as necessary.
Issue fork drupal-3456388
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
quietone commentedComment #3
saurav-drupal-dev commentedYou're right that using H2 tags for the Main Menu and Breadcrumbs could have SEO implications, as it may disrupt the heading hierarchy of the page.
The H2 tags are likely coming from the theme's default Twig template for these elements. To fix this, you can override the
menu.html.twigorbreadcrumb.html.twigfile in your theme:This change ensures proper semantic structure while maintaining accessibility. Don't forget to clear the cache after applying the changes!
Let me know if you'd like further assistance with testing or creating a patch also we can directly replace H2 with div.
Comment #4
niharika.s commentedComment #5
niharika.s commentedComment #6
saurav-drupal-dev commentedanyone has any suggestion on it?
Comment #7
platinum1 commentedThank you for your confirmation @saurav-drupal-dev.
I am surprised that nobody else is taking an issue with this.
Comment #9
quietone commentedIt looks like this has been answered.
The Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our Support page, including the Drupal Forums and Drupal Answers. There is also Drupal Slack. You may get better replies in one of those places.
I am closing this per the guidance in Handle or refer a support request in an issue.
Comment #11
platinum1 commentedDear @quietone, I do not perceive my original post as a support request for Drupal Forums or Drupal Answers. I have described a shortcoming in a core theme, which can negatively affect the SEO of all users utilizing the theme. @saurav-drupal-dev not only agreed with the possible SEO implications, but indicated where the problem is coming from. That does not mean that a question has been answered, there was none in the first place.
FWIW, I think the theme should be changed in this regard. If the community does not agree, so bet it.