Archived topic
H1 Span Subheading
4 replies · Started by Michael on February 4, 2022
Hi,
I would like to split my H1 tag so it looks like this:
<h1>content<span>Content</span></h1>
The content within the span tag should be in a separate line and also be smaller than the first part of the H1.
Is that possible somehow?
Thanks
Hi Michael,
Would this be for the dynamic titles or just for specific H1s you've manually added as part of content?
If it's for dynamic titles, you'll have to filter this specific structure in.
If it's for manually added H1s, you can do it within the Block editor. (through Edit HTML or depending the options provided if you're using a plugin to add H1)
Hi Michael,
Would this be for the dynamic titles or just for specific H1s you've manually added as part of content?
If it's for dynamic titles, you'll have to filter this specific structure in.
If it's for manually added H1s, you can do it within the Block editor. (through Edit HTML or depending the options provided if you're using a plugin to add H1)
Hi Elvin,
it is for the normal manually added H1s, but I cant see where to edit the html of an h1? I can do it for all other headlines but it seems i cant edit the first one.
Hi there,
you can't edit the Content Title in the editor.
Instead you would have to disable the Content Title:
https://docs.generatepress.com/article/disable-elements-overview/
Then add your H1 to the page content. Then you can edit the HTML as you please.