Tagged: x
-
AuthorPosts
-
November 16, 2016 at 12:28 am #1258998
BlueGraphicsParticipantHello Guys,
So i got this message from a client’s SEO person, saying that my site http://www.mauifin.com has a H1 tag in the headder set hidden causing problems. Could you please let me know if the below message is true, and if it gives the best solution to solve this issue, or if you would do otherwise.
Please let me know if creentials are needed. Site is up to date on wp, x, cornerstone and all plugins.
The “Integrity framework” installed on MFC ‘s X theme has dynamically generated H1 tag in the header of the site. The tag is set be be visibly hidden but this has for affect to generate a duplicated H1 on all pages of the site, which severely hinders the indexing by search engines. Because this tag is generated from a function within the theme header template, this issue can only be fixed by creating and installing a new child theme not containing this function.
November 16, 2016 at 2:50 am #1259093
ThaiModeratorHi There,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then navigate to your child theme’s /framework/views/global directory create a file named _brand.php and paste the code below:<?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 it helps 🙂
November 16, 2016 at 2:54 am #1259097
BlueGraphicsParticipantHello & many thanks for your answer.
I have a question or two before i do as you said.
I am already using a child theme. Should i set up another or i can go ahead and do the changes on current.November 16, 2016 at 3:47 am #1259123
ThaiModeratorHey There,
If you’re already using a child theme, you can go ahead.
No need to install the child theme again.
Regards!
November 16, 2016 at 1:25 pm #1259761
BlueGraphicsParticipantthank you!
November 16, 2016 at 3:25 pm #1259927
Nabeel AModeratorGlad we could help.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1258998 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
