Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1258998
    BlueGraphics
    Participant

    Hello 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.

    #1259093
    Thai
    Moderator

    Hi 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 🙂

    #1259097
    BlueGraphics
    Participant

    Hello & 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.

    #1259123
    Thai
    Moderator

    Hey There,

    If you’re already using a child theme, you can go ahead.

    No need to install the child theme again.

    Regards!

    #1259761
    BlueGraphics
    Participant

    thank you!

    #1259927
    Nabeel A
    Moderator

    Glad we could help.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1258998 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>