Archived topic
Extra tags being inserted
5 replies · Started by Greg on June 24, 2020
On a few pages of my site, there's an extra <h1> tag being inserted after <div class="entry-content">.
I suspect this may a theme setting, but searched the docs and found no reference. Thanks for any information on how to turn this setting off, if indeed it originates from GeneratePress.
Hi there,
the Theme adds the <h1> within the entry-header by default - this is currently being hidden with some CSS.
Whats the purpose of hiding the entry title and meta and then adding back into the content?
Thanks. Ok, good to know the theme is adding the h1 within entry-header. That's where I find all the h1 tags on the site. Then, on a few pages I'm finding that tag in that place, plus an extra h1 tag further down within entry-content.
If I go on those pages with the extra h1 tag, and delete that extra tag, then no <h1> heading is visible on the page. It's as if, in those cases the first <h1> was somehow hidden.
I don't understand how these <h1> tags found in entry-header are hidden... is there a way to make them visible? (I do see an eyeball icon next to them but these indicate visibility is enabled)
In your Customizer > Additional CSS you will find this:
.page-id-14218 .inside-article .entry-header,
.page-id-14218 .inside-article .entry-meta,
.page-id-14220 .inside-article .entry-header,
.page-id-14220 .inside-article .entry-meta,
.page-id-14222 .inside-article .entry-header,
.page-id-14222 .inside-article .entry-meta,
.page-id-14224 .inside-article .entry-header,
.page-id-14224 .inside-article .entry-meta,
.page-id-14226 .inside-article .entry-header,
.page-id-14226 .inside-article .entry-meta,
.page-id-14200 .inside-article .entry-header,
.page-id-14200 .inside-article .entry-meta,
.page-id-14157 .inside-article .entry-header,
.page-id-14157 .inside-article .entry-meta,
.page-id-14185 .inside-article .entry-header,
.page-id-14185 .inside-article .entry-meta {
display: none;
}
Its specific to a few different pages.
Ok that helps tremendously. Thanks very much!
You're welcome