-
AuthorPosts
-
September 24, 2014 at 2:03 am #111184
I ran a scan on wookrank.com on my http://www.meoptometry.com site. One of the suggestions was to “Never duplicate your title tag content in your header tag.” How do I remove the automatic entry of the site title into the H1 Tag. I am using wordpress SEO, so I suppose I could make my site title in the wordpress settings to match the H1 I want.. and then just specify the Title of the Homepage in wordpress SEO, but that seems kind of like a hack and I’m not sure if the sit title is used anywhere else in wordpress. Is there a way to remove the site title from an automatic H1 entry? Any suggestions?
Thanks,
meoSeptember 24, 2014 at 6:41 am #111343Hi Meo,
Thanks for writing in.
To remove the h1 entry, follow the steps below.
1. Create file _brand.php in x-child-integrity-light/framework/views/global/
2. Paste the code below into that file (x-child-integrity-light/framework/views/global/_brand.php)<?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