• Resolved nomozine

    (@nomozine)


    Please help!!

    I got an SEO error from Bing saying

    The <h1> tag is missing for my homepage.

    I use generatepress free theme.

    My post title tags are fine, just only my homepage that needs to be H1

    Here’s my website – https://www.bestsoltips.com/

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Leo

    (@leohsiang)

    Hi there,

    The issue here is that there isn’t an element suitable to be an <h1> when a site logo is used.

    The only solution I think of is to add it in using a PHP snippet like this:

    add_action( 'generate_after_header', function() {
        if ( is_front_page() && is_home() ) :
            ?>
                <div class="header-entry-title grid-container grid-parent">
                    <h1 class="entry-title">My Front Page Title</h1>
                </div>
            <?php
        endif;
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Thread Starter nomozine

    (@nomozine)

    This solved my problem. Thank you.

    But is there a way i can remove “My Front Page Title” text from my homepage?

    it doesn’t go well with my theme design.

    Leo

    (@leohsiang)

    But is there a way i can remove “My Front Page Title” text from my homepage?

    You can remove the text with CSS but then there is really no point to add it in in the first place – Google doesn’t like you to add something in and hide it in CSS as far as I understand.

    I really don’t think it’s a big issue not having <h1> in your home page nowadays.

    Thread Starter nomozine

    (@nomozine)

    ok…thank you for your help.

    Leo

    (@leohsiang)

    No problem ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘My tag is missing from homepage’ is closed to new replies.