[Resolved] Extra tags being inserted

Home Forums Support Extra tags being inserted

  • This topic has 5 replies, 2 voices, and was last updated 3 months ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1340169
    Greg

    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.

    #1340347
    David
    Staff
    Customer Support

    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?

    #1340366
    Greg

    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)

    #1340368
    David
    Staff
    Customer Support

    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.

    #1340392
    Greg

    Ok that helps tremendously. Thanks very much!

    #1340394
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.