[Support request] Multiple H1

Home Forums Support [Support request] Multiple H1

Home Forums Support Multiple H1

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #2283163
    David

    When does GeneratePress Pro theme add h1 tags to the site header?

    #2283186
    Fernando
    Customer Support

    Hi David,

    I’m not sure I understand the question. To clarify, are you wanting to know how to add a H1 to the site header? If so, one approach is to use a Block Element: https://docs.generatepress.com/article/block-element-overview/

    If you’re referring to something else, kindly let us know.

    #2283188
    David

    NO, the question is simple. On some webpages GP adds h1 tags to the header and some webpages it does not. So my question is very easy to understand: When does GeneratePress Pro theme add h1 tags to the site header?

    You know what the “site header” is and you know what “h1 tags” are.

    Can you please help me?

    #2283192
    David

    On some of the webpages there are h1 tags in the header. When does GeneratePress Pro theme add h1 tags to the site header?

    #2283204
    Fernando
    Customer Support

    I see. That H1 seems to be from a Page Hero – Block Element. You can check this Element by viewing the page in the frontend, and then hovering on Elements in the admin bar, and then selecting the corresponding Block Element that’s a Page Hero: https://share.getcloudapp.com/BluGdlJD

    The site-header is the part where your menu and logo is located: https://share.getcloudapp.com/RBumJZ09

    In your reference site, the H1 is added under the site-header inside a Page Hero.

    By default, H1 titles are added automatically as the entry-header inside the Content.

    GeneratePress can also add H1 tags anywhere. From your reference site, in that specific location, it can be added through a Block Element – Page Hero, a Block Element hooked to after_ header, and a Header Element.

    Hope this clarifies.

    #2283208
    David

    Yes I see this: By default, H1 titles are added automatically as the entry-header inside the Content.

    I agree.

    How can I fix (change) this. In my Block Element – Page Hero, the h1 is added and I do not see a way to change this. Can this be fixed?

    Thank You.

    #2283211
    Fernando
    Customer Support

    To clarify, what would you like to do? Turn it into an H2 or something else, delete it, or make the default H1 appear again?

    Kindly let us know.

    #2283213
    David

    I you see the About page it does not have this problem. I do not want an h1 added into the block header. Maybe have it like regular, say as in on the About page. <p> is fine

    #2283219
    David

    To be clear I am using an Elements with a type “Header” and then using the Site Header section. How can I accomplish what I have now but without the h1 tags.

    #2283231
    Fernando
    Customer Support

    In your homepage, you seem to have a Header Element, and a Block Element – Page Hero.

    The H1 seems to be coming from the Block Element, not the Header Element. You can delete it from the Block Element.

    Hover on Elements again in your admin bar and look for that specific Block Element with the H1.

    #2283234
    David

    Wow, that is clearly not what I want.

    In the Element Block Header which is the Page Hero using the after header hook there is an h1 tag. But that is the h1 tag that I need on the page.

    The h1 tag inside the site header around my site title, is the one I do not want. Again if you see the About page the h1 tag is not around the site title.

    #2283235
    David

    How do I remove the h1 tag around the site title on the front page?

    #2283236
    David

    My question is: When does GeneratePress Pro theme add h1 tags to the site header?

    How do I remove the h1 tag around the site title on the front page?

    So why are you saying to remove the h1 inside the Block that comes after the header?

    #2283239
    Fernando
    Customer Support

    Oh sorry, I didn’t notice the H1 site title in your site-header.

    By default, that shouldn’t be an h1. GeneratePress shouldn’t be adding the site-title as an H1 either. It may be a third party plugin causing this.

    As a first course of debugging, can you try #1 here?: https://docs.generatepress.com/article/debugging-tips/

    It would be good to take a backup of your site before doing so.

    Kindly let us know how it goes. Sorry for the misunderstanding.

    #2283240
    David

    I already debug before contacting you. But thank you in case I forgot.

    You said: Oh sorry, I didn’t notice the H1 site title in your site-header.
    But my original question was: When does GeneratePress Pro theme add h1 tags to the site header?

    Can you please help me with this?

Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.