• I am facing an issue with my website’s home page H1 tag, which is missing when checked with SEO checkers!

    I have read so many forums but unfortunately did not find any solution.

    I tried adding a function with header.php in the child theme and functions.php, but also had no success!

    <?php wp_title('', true,''); ?>sensolern</title>
    
    

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter sensolern

    (@sensolern)

    <title><?php wp_title(”, true,”); ?>sensolern</title>

    Hi @sensolern,

    Thank you for submitting this support request!

    The <title> tag that you are sharing above is metadata that lives in the <head> and does not require a wrapping <h1> tag.

    It looks like your internal pages are already using the page title as an <h1> tag, which is great!

    For your home page, I would recommend adding a descriptive heading as an <h1> element. You can see an example on https://wordpress.com (be sure that you’re logged out when viewing this page).

    I hope that helps and please feel free to reach out if you have any additional questions or clarifications!

    Thread Starter sensolern

    (@sensolern)

    Hi Danielwrobert,

    Thanks for your help

    I’m not sure if I correctly understood what you meant. The headline on my homepage is: “sensolern Kontrastkarten mit p?dagogischem Wert”. I just added it to the title in (Customize) and in the head.php as well, but unfortunately no success!

    <?php wp_title(”, true,”); ?>sensolern Kontrastkarten mit p?dagogischem Wert</title>
    
    

    Hi, @sensolern!

    It seems like we may be talking about two different things. To clarify, are you trying to modify the <title> tag in your site? Or are you trying to add an <h1> heading to the home page?

    I do see a <title> tag being rendered three times on your site – once in the <head> of the document, where it should be, and another two times in the <body> (along with a bunch of other meta tags that should be in the document head). As seen in the screen recording of the developer console below, the third <title> element is outputting an error from the head.php file.

    [video src="https://cldup.com/gPtmnRxC6v.mp4" /]

    You shouldn’t need to add anything to the head.php file. I would suggest removing your changes there, as that seems to be part of the issue. Also, the title output is handled elsewhere in the theme.

    I also notice that your are using the Yeost SEO plugin. If you are having trouble updating the text that is being out put for the <title> you may want to visit their page for documentation and/or support.

    With regards to the <h1> tag, which you noted in your original message, what I was suggesting is to add a heading as an <h1> somewhere on your home page.

    I offered the (logged out) homepage on https://wordpress.com as an example – see the text “Welcome to the world’s most popular website builder.”, which is an <h1> heading. You have an <h1> being set on your internal pages, via the page title. But the home page does not have a <h1> heading and I assume this is what your SEO checker is referring to.

    I hope that helps to clarify things a bit further. Again, please feel free to reach out if you need further assistance!

    Thread Starter sensolern

    (@sensolern)

    Hi,

    Since about 2 years, I am using the main headline “sensolern Kontrastkarten mit p?dagogischem Wert” on my homepag, and “sensolern” as text in the in the site identity in the theme customizer (beneath the logo image). There was always no issues with the H1 tag at all. Just a few days ago, I noticed the H1 tag is missing!

    I messed around some forums like Stack overflow and found two separate advises to add a <title> in the header.php and a function in functions.php, it seems that both didn’t work as you mentioned. After that I contacted Yoast, they said that they cannot help and the issue must be discussed with Storefront theme support.

    Today I realized the the H3 are also not found, only H2 and H4!!

    Now both codes were removed, the homepage title was always untouched and still no clues about the reason!.

    • This reply was modified 1 year, 6 months ago by sensolern.
    Thread Starter sensolern

    (@sensolern)

    Hi again,

    I just figured out the problem. It is all about the Storefront theme, once changed to any other theme the problem is way.

    Thank you very much for your patience and efforts.

    Hi!

    I’m glad to hear you are able to move forward. If the issue seems to be specific to the Storefront theme, please feel free to create an issue on the theme’s repository (with steps on how to reproduce) and we can have a look at resolving it!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘H1 tag missing!’ is closed to new replies.