Tagged: x
-
AuthorPosts
-
December 6, 2016 at 9:28 am #1283220
Theresa KParticipantHello there,
I recently crawled through my site and realized we had duplicate h1s, which is not good for accessibility and SEO. I’m thinking the duplicate comes from the logo or the page name, but I’m not 100% sure.
The site is: beforeage18.org and the duplicate H1 is beforeage18.org.
I did go through different forum entries to troubleshoot this on my own and added code to _brand.php but it didn’t solve the problem completely. It seems it only targets a few pages.
<?php // ============================================================================= // VIEWS/GLOBAL/_BRAND.PHP // ----------------------------------------------------------------------------- // Outputs the brand. // ============================================================================= $site_name = get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description' ); $logo = x_make_protocol_relative( x_get_option( 'x_logo' ) ); $site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">'; ?> <?php echo ( is_front_page() ) ? '' : ''; ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a>Thanks for your help.
December 6, 2016 at 11:02 am #1283342
ThaiModeratorHi There,
Upon checking your home page, I could see there is only
<h1>tag.Could you please double check again?
Thanks.
December 6, 2016 at 5:18 pm #1283789
Theresa KParticipantI just checked and noticed the issue was resolved 🙂
December 6, 2016 at 6:18 pm #1283821
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1283220 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
