Site logo

Archived topic

h1 missing when do seo audit

5 replies · Started by pankaj on January 19, 2018

Viewing posts 1–6 of 6

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

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

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!

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 :)

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.

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.

This archived topic is closed to new replies.