• Resolved alin99

    (@alin99)


    Hi There,

    I was hoping someone could please assist with this issue. I am trying to improve the SEO ranking for the site but one of the major issues is a duplicate of the H1 tag.

    Unfortunately I cannot find the first H1 tag and it’s apparently empty… ??

    This is on the Botiga theme. It should be the newest version, I’m running Starter sites ver. 1.0.41

    Can someone please help?

    Thank you,

    • This topic was modified 1 year, 3 months ago by alin99.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @alin99,

    You can find the hidden H1 element in this theme’s file inc/modules/hf-builder/components/header/logo/logo.php

    If you want to exclude that element, remove this line:

    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>

    Please note that this change will be wiped out once you update the theme. So you’ll need to redo this after updating.

    Thread Starter alin99

    (@alin99)

    Hi @kharisblank ,

    Thank you. ??

    Thread Starter alin99

    (@alin99)

    Hi @kharisblank ,

    Could it be coming from another configuration file somewhere?

    I’ve removed the line and reset the caching addons but it’s still being picked up by SEO checkers.

    Thank you,

    Alin

    Hi @alin99,

    Do you have an active child theme? I am wondering if it retains the heading tag.

    If so, you may need to try disabling it for checking purpose and make some code adjustments in it accordingly.

    Thread Starter alin99

    (@alin99)

    Hi @kharisblank ,

    Here’s a list of all of the active plugins I have installed:
    aThemes Blocks, aThemes Starter Sites, Limit Login Attempts Reloaded, Loco Translate, WooCommerce, WP Rocket, WPForms Lite, YaySwatches - Variation Swatches for WooCommerce, Yoast SEO

    Do you think one of them could be causing this? The only one that may have anything related would be WP Rocket…

    It’s a caching and performance optimization plugin to improve the loading of WordPress sites… (it improves the website loading speed).

    Thread Starter alin99

    (@alin99)

    Hi @kharisblank ,

    I tried disabling every plugin and then went into my saved original file, made the change and then saved it as logo.php.

    I have not reenactivated any plugin but when I run the site through an SEO checker, it still appears as “The H1 heading is empty”. ??

    Thread Starter alin99

    (@alin99)

    Hi @kharisblank ,

    I found the fix. I’m sharing it on here for any future people that experience the same issue.

    My underlying issue is due to a lazy “fix” my hosting provider instructed me to do when I first set up the website. My site was not appearing unless accessed via beewickd.com/wordpress and they had me copy files around. Anyhow, I now have two of the files Kharis suggested I change.

    /public_html/wp-content/themes/botiga/inc/modules/hf-builder/components/header/logo/logo.php

    /public_html/wordpress/wp-content/themes/botiga/inc/modules/hf-builder/components/header/logo/logo.php

    Once I made the change to both, the problem disappeared. ??

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