[Resolved] H1 tag missing on homepage

Home Forums Support [Resolved] H1 tag missing on homepage

Home Forums Support H1 tag missing on homepage

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1104091
    Tran

    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.

    #1104098
    David
    Staff
    Customer Support

    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/

    #1104248
    Tran

    Thanks for a sugguestion.
    I enable page title, H1 tag showed. It worked

    thank you David

    #1104260
    David
    Staff
    Customer Support

    You’re welcome

    #1109433
    Nikita

    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!

    #1109633
    David
    Staff
    Customer Support

    Hi there,

    are you intentionally trying to hide the site title ?

    #1110192
    Nikita

    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?

    #1110352
    David
    Staff
    Customer Support

    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.

    #1110377
    Nikita

    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.

    #1110380
    Nikita

    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.

    #1110450
    David
    Staff
    Customer Support

    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.

    #1110455
    Nikita

    Thank you very much for your help!

    #1110470
    David
    Staff
    Customer Support

    You’re welcome

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