Archived topic
H1 tag missing on homepage
12 replies · Started by Tran on December 14, 2019
My homepage is missing H1 tag. I only use texts for site title.
I tested insert logo next site title, but not working.
Can you please help me fix this ?
Thank you.
Hi there,
i assume you have added a Title to the Home Page?
If so make sure you do not have not disabled the content title:
https://docs.generatepress.com/article/disable-elements-overview/
Thanks for a sugguestion.
I enable page title, H1 tag showed. It worked
thank you David
You're welcome
Hello! I am planning to use a logo on my website https://quickbooksummary.com/. The problem is that now my page is missing H1 Tag. I've already tried to insert the code in the before-head element like it was advised by Tom in one of the forum threats. It worked well BUT now on all mobile devices, the menu is moved a little bit down(because of the elements that were inserted before the menu). How can I deal with this problem? Thank you!
Hi there,
are you intentionally trying to hide the site title ?
Hello David! Pardon me, I am not sure what you mean by “intentionnaly hiding the site title”. I just want to put a logo(image file) at the top left corner of the website and remove the text completely. When I do so H1 tag is missing. Is there any way I can have an image logo there and have an h1 tag present on my blog?
It looks like you hooked in the following:
<div class="site-branding">
<!--?php if ( is_home() ) : ?-->
<h1 class="main-title" itemprop="headline">
<a href="https://quickbooksummary.com/" title="Quick Book Summary" rel="home">Quick Book Summary</a>
</h1>
<!--?php else : ?-->
<p class="main-title" itemprop="headline">
<a href="https://quickbooksummary.com/" title="Quick Book Summary" rel="home">Quick Book Summary</a>
</p>
<!--?php endif; ?-->
But then its being styled to not display - either 1px font size or the color is #fff
So I am unsure if you want the title to be visible?
As a note its not crucial there is a H1 on the blog page, as the <title>Quick Book Summary</title> tag exists in the <head> of the site.
I don’t want the title to be visible. I just want the logo to be at the top left corner instead. So I uploaded an image and checked the “hide the title” option. After that, the H1 tag is missing. Maybe I did not even need to use the code in the first place. I am confused.
How can I have an image logo without losing an H1 tag on the website? Is it even possible? If so, what should I do? I can revert the code changes and settings if needed.
There is no value in add a H1 that isn't going to be visible. Personally I would not worry about it.
The site contains the <title> tag which is more important to the search engine.
Thank you very much for your help!
You're welcome