Tagged: x
-
AuthorPosts
-
March 28, 2017 at 5:37 am #1422828
Hi there
I’d like to better understand H1 behavior in X Theme
Some site analyzer alert me in order to:
28 Errors: pages with more than one H1 tag
some examples:
https://www.ilsentierodeglignomi.it/
https://www.ilsentierodeglignomi.it/blog/
https://www.ilsentierodeglignomi.it/la-magica-favola-di-gnomo-bagnolo/Could you help me in order to resolve this issue?
Thank You
March 28, 2017 at 12:23 pm #1423210Hi there,
Thanks for writing in! To resolve any issue we need to understand the issue first. Which site you are using and what’s wrong with the h1 tag? Let us know about the problem.
Cheers!
March 28, 2017 at 12:38 pm #1423239Hi there
I’m sorry
The site is:
https://www.ilsentierodeglignomi.it/onpage.org reports me that 28 pages have more than one H1 tag
Per page should only be one H1.
Thank You
March 29, 2017 at 7:23 am #1424060Hi,
To fix it, create file _brand.php in wp-content/themes/x-child/framework/views/global
and copy the code below into that file.<?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 . '">'; ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a>
Hope that helps.
-
AuthorPosts