No <h1> tag in homepage

Hi everyone, i ran my site spicegadget.com in an online seo site and they said i don’t have a description in h1 tag. Please can someone direct me on how to add it?

Hello there,

Try adding the below snippet to your active child theme’s functions.php file.

    add_filter( 'get_custom_logo', 'greatmag_child_custom_logo', 99999, 1 );
    function greatmag_child_custom_logo( $html ) {

      $h1Tag = '<h1 style="height:0;width:0;opacity:0;overflow:hidden;">'.get_bloginfo('name').'</h1>';

      return sprintf('%1$s %2$s', $h1Tag, $html);

    }

If you don’t want to use a child theme, you can apply that code with a plugin that allows the same purpose like Code Snippets or Functionality.

Regards,
Kharis

I’ve added the code in my child theme function.php file correctly. But the is no changes and the error still persist. Was I supposed to do something afterwards?

Hello there,

I checked your site with this tool. And the result displayed like below:

32

H1 does present in there. Did you still get different result?

Regards,
Kharis

I also ran my site with the link u provided and it said the was h1 tag but it was empty. Please how can i add a description in

?

Hello there,

By default it will display site title set in the Dashboard > Settings > General. Is yours empty?

Regards,
Kharis