Why are my h1 and h2 in <span>?

Hey there !
I don’t understand why my headings are stuck to font-weight: 400 in on my pages.
You can have an example here : https://www.isatis.io/credit-impot-recherche/
What can I do to have other figures (like 600 for h1 and 500 for h2) ?
Thanks for your help !
Matthieu

Hey Matthieu,

The theme is not outputting span tags inside the headlines added in the WordPress Classic Editor. See

There must be something in your site adding those span tags to your headlines. Please try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Please also try switching to the parent theme and see if the issue persists. If it does, would you mind showing us how you’re adding your headlines? You can provide more details and screenshots or you can record a screencast.

There’s no option to set a font weight specifically for global headline levels. You can do that with custom CSS but that is not recommended because that’ll slow down your site and also, it depends on the font you’re using. If you wish to achieve this, you will need to consult with a third party developer.

Thanks.

Thanks for your answer.
I found the solution thanks to your help :slight_smile:
Best regards !

You’re most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.