But a few days ago, I notices that I have 2 H1 hags, both for the logo image.
Each one rendered by different code.
I saw that many people have complained about this, without it being resolved.
This file may contain the location of that:
td-cloud-library/shortcodes/header/tdb_header_logo.php
The function render() is called twice and I believe that inserts the two lines below into the HOME page.
I did have a standard logo and a retina logo, but I removed the retine logo because I thought that might be the cause of this, but removing it didn’t help.
One is probably display:none; in the CSS
Isn’t there a better way to do this than to have two complete H1s in the page ?
Some software may see the CSS, but some is not that smart.
For example, RankMath thinks there are 2x H1 tags
I think Google ignores one of them.
But I saw that some people using Newspaper theme had up to 6 H1 tags.
In the rendered page, here are the two lines:
Line 456
<style>.tdb_header_logo{margin-bottom:0;clear:none}.tdb_header_logo .tdb-logo-a,.tdb_header_logo h1{display:flex;pointer-events:auto;align-items:flex-start}.tdb_header_logo h1{margin:0;line-height:0}.tdb_header_logo .tdb-logo-img-wrap img{display:block}.tdb_header_logo .tdb-logo-svg-wrap+.tdb-logo-img-wrap{display:none}.tdb_header_logo .tdb-logo-svg-wrap svg{width:50px;display:block;transition:fill .3s ease}.tdb_header_logo .tdb-logo-text-wrap{display:flex}.tdb_header_logo .tdb-logo-text-title,.tdb_header_logo .tdb-logo-text-tagline{-webkit-transition:all 0.2s ease;transition:all 0.2s ease}.tdb_header_logo .tdb-logo-text-title{background-size:cover;background-position:center center;font-size:75px;font-family:serif;line-height:1.1;color:#222;white-space:nowrap}.tdb_header_logo .tdb-logo-text-tagline{margin-top:2px;font-size:12px;font-family:serif;letter-spacing:1.8px;line-height:1;color:#767676}.tdb_header_logo .tdb-logo-icon{position:relative;font-size:46px;color:#000}.tdb_header_logo .tdb-logo-icon-svg{line-height:0}.tdb_header_logo .tdb-logo-icon-svg svg{width:46px;height:auto}.tdb_header_logo .tdb-logo-icon-svg svg,.tdb_header_logo .tdb-logo-icon-svg svg *{fill:#000}.tdi_10 .tdb-logo-a,.tdi_10 h1{align-items:flex-start;justify-content:center}.tdi_10 .tdb-logo-svg-wrap{display:block}.tdi_10 .tdb-logo-svg-wrap+.tdb-logo-img-wrap{display:none}.tdi_10 .tdb-logo-img-wrap{display:block}.tdi_10 .tdb-logo-text-tagline{margin-top:2px;margin-left:0;display:none}.tdi_10 .tdb-logo-text-title{display:none}.tdi_10 .tdb-logo-text-wrap{flex-direction:column;align-items:flex-start}.tdi_10 .tdb-logo-icon{top:0px;display:block}@media (max-width:767px){.tdb_header_logo .tdb-logo-text-title{font-size:36px}}@media (max-width:767px){.tdb_header_logo .tdb-logo-text-tagline{font-size:11px}}@media (max-width:767px){.tdi_10 .tdb-logo-img{max-width:160px}}</style><div class=”tdb-block-inner td-fix-index”><h1><span class=”tdb-logo-img-wrap”>
</span><span class=”tdb-logo-text-wrap”><span class=”tdb-logo-text-title”>AxcessNews</span><span class=”tdb-logo-text-tagline”>Business News Channel</span></span></h1></div></div> </div></div><div class=”vc_column tdi_12 wpb_column vc_column_container tdc-column td-pb-span4″>
Line 470
<style>.tdi_26 .tdb-logo-a,.tdi_26 h1{align-items:flex-start}.tdi_26 .tdb-logo-a,.tdi_26 h1{justify-content:center}.tdi_26 .tdb-logo-svg-wrap{display:block}.tdi_26 .tdb-logo-svg-wrap+.tdb-logo-img-wrap{display:none}.tdi_26 .tdb-logo-img-wrap{display:block}.tdi_26 .tdb-logo-text-tagline{margin-top:2px;margin-left:0;display:none}.tdi_26 .tdb-logo-text-title{display:none}.tdi_26 .tdb-logo-text-wrap{flex-direction:column;align-items:flex-start}.tdi_26 .tdb-logo-icon{top:0px;display:block}</style><div class=”tdb-block-inner td-fix-index”><h1><span class=”tdb-logo-img-wrap”>
</span><span class=”tdb-logo-text-wrap”><span class=”tdb-logo-text-title”>AxcessNews</span><span class=”tdb-logo-text-tagline”>Business News Channel</span></span></h1></div></div> </div></div><div class=”vc_column tdi_28 wpb_column vc_column_container tdc-column td-pb-span4″>
Hello @newsblaze!
Check in the TagDiv Composer and disable the H1. For example, H1 from logo(header, footer, mobile, sticky): https://forum.tagdiv.com/topic/6-h1-tags-on-front-page-bing-have-deindexed-my-site/
Thank you!
Hello @newsblaze!
For the default templates, there is an option to deactivate the H1 on pages in the theme panel -> header.
Thank you!
