• Hello everyone!
    My issue is simple for experts. Em not a developer and I don’t have any knowledge of coding

    If I go to Appearance > Customize > Site Identity and ENTER My Site Title everything is fine the website main page has H1 Tag.

    But when I upload a Logo and Crawl my website the report shows that H1 Tag is missing.
    I want to use a logo instead of a Site Title. (I have tried Site Title as Blank but it didn’t work)

    In my theme, there are only 3 options available in the Appearance > Customize section
    1: Site Title
    2:Tagline
    3:Favicon

    I have tried a lot to find the .php file, I have checked Header.php but I didn’t find H1
    then I find LOGO.PHP

    here’s the code. please help

    <?php
    	global $gridlove_h1_used;
    	$logo = gridlove_get_option( 'logo' );
    	$logo_custom_url = gridlove_get_option('logo_custom_url');
    	$logo_url = !empty( $logo_custom_url ) ? $logo_custom_url : home_url( '/' );
    	$brand = !empty( $logo ) ? '<img class="gridlove-logo" src="'.esc_url( $logo ).'" alt="'.esc_attr( get_bloginfo( 'name' ) ).'" >' : get_bloginfo( 'name' );
    	$brand_bg_color_class = gridlove_get_option( 'logo_bg' ) ? 'gridlove-branding-bg' : '';
    	$logo_only_class = empty( $logo ) ? 'gridlove-txt-logo' : '';
    ?>
    
    <div class="gridlove-site-branding <?php echo esc_attr( $brand_bg_color_class ); ?> <?php echo esc_attr( $logo_only_class ); ?>">
    	<?php if ( is_front_page() && empty($gridlove_h1_used) ) : ?>
    		<h1 class="site-title h1"><a href="<?php echo esc_url( $logo_url ); ?>" rel="home"><?php echo wp_kses_post( $brand ); ?></a></h1>
    	<?php else : ?>
    		<span class="site-title h1"><a href="<?php echo esc_url( $logo_url ); ?>" rel="home"><?php echo wp_kses_post( $brand ); ?></a></span>
    	<?php endif; ?>
    
    	<?php if ( gridlove_get_option( 'header_site_desc' ) ): ?>
    		<?php get_template_part( 'template-parts/header/elements/site-desc' ); ?>
    	<?php endif; ?>
    
    </div>
    
    <?php $gridlove_h1_used = true; ?>

    What should I change here?

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

  • The topic ‘H1 Tag missing in SEO Report’ is closed to new replies.