Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Support request] h1 missing when do seo audit

Home Forums Support h1 missing when do seo audit

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #474678
    pankaj

    Hello Sir, When I check my website through SEO audit it shows H1 missing on main home page. Actually I am using static page for home page.

    And I disable title of that static page.

    So How i can enable H1 tag on home page?
    thanks

    GP Premium 1.5.6
    #475067
    Tom
    Lead Developer
    Lead Developer

    Since you’ve disabled the title that’s added by default, you’ll need to add your own <h1> element in your content.

    #475170
    Hernán

    I just entered the forum to ask Tom the same question.

    I bought the Premium Theme and when I deactivate the title and description because I want to show a logo image, I lose the H1 and the description of my website.

    My question for Tom is:
    Is it done like that for some special reason? What’s wrong with using “display: none” in the CSS code to hide them?

    My solution for this was to hide them with “display: none;” through the “Appareance> Customize> Aditional CSS” option that GeneratePress has.

    This is the code that I’ve used (I have commented for you):

    
    /* Hide H1 & Desc. from home page*/
    	.site-branding h1{display:none;}
    	.site-branding p.site-description {display:none;}
    
    /* Hide web title inside a single-post or single-page */
    	.site-branding p.main-title {display:none;}
    

    Of course, you must leave the “Title” and “Description” checks actives on your website (Then they will be hidden through CSS).

    Tom is this correct or does it affect my website in any way?

    Thanks & regards!

    PS: Sorry another question!
    When I update the template, will I lose this code written on the “Aditional CSS” tab? Or will it stay there? Thanks!

    #475356
    Tom
    Lead Developer
    Lead Developer

    Is it done like that for some special reason? What’s wrong with using “display: none” in the CSS code to hide them?

    Google hates when you do things for them and not your user. They will ignore the <h1> if it’s set to display: none, so it’s best to just remove it altogether.

    Your Additional CSS will stay put when you update 🙂

    #475402
    Hernán

    Oh, I used to believe that that only happened if you hid many keywords.

    So, there is no way to hide the text and still have the h1 present?

    Thanks for your answer.

    #475756
    Tom
    Lead Developer
    Lead Developer

    Not in a way that Google will appreciate. It’s best to have the H1 in your content, and have it be useful to the person viewing your site.

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