-
Notifications
You must be signed in to change notification settings - Fork 79
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
Section field uses h1 #453
Comments
This is probably a better idea, however, this field is primarily used in Admin, where h1 was already styled the way we wanted. Also changing it now would mean a breaking change. So something we'll handle better next time. As a workaround you can override the |
The admin template is located here, will this be pulled from the forms plugin?: What about this? It is 100% backwards compatible, but still fixes the issue:
|
I'm ok with this if you create a PR. Cheers! |
grav-plugin-form/templates/forms/fields/section/section.html.twig
Line 7 in eeaa89f
The section field uses h1 by default. This is a really bad idea, as a page should not have more then one h1. Also most likely you will have a different h1 for the page, maybe a h2 after and a h3 inside the section. The reason why this is important is search engine optimization (SEO).
I know this template can be overwritten in the theme, but I'd like to fix it upstream, if possible. My suggestion:
h3
title_level
which can be set toh4
etc.The change only affects frontend from, not the admin. The admin also uses h1, but does not need a search engine optimization, so it is less important.
The text was updated successfully, but these errors were encountered: