- This topic has 5 replies, 3 voices, and was last updated 8 years, 2 months ago by
Tom.
-
AuthorPosts
-
January 19, 2018 at 12:50 am #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?
thanksJanuary 19, 2018 at 9:53 am #475067Tom
Lead DeveloperLead DeveloperSince you’ve disabled the title that’s added by default, you’ll need to add your own
<h1>element in your content.January 19, 2018 at 12:28 pm #475170Herná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!January 19, 2018 at 8:44 pm #475356Tom
Lead DeveloperLead DeveloperIs 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 🙂
January 20, 2018 at 1:35 am #475402Herná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.
January 20, 2018 at 9:25 am #475756Tom
Lead DeveloperLead DeveloperNot 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.
-
AuthorPosts
- You must be logged in to reply to this topic.