Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1074826
    Kobber
    Participant

    Hi,

    I can see that on my main page (welcome page) I have a double H1. I want to be in full control of my headings, so how can I remove the H1 in the background?

    Thanks in advance!

    #1074893
    Joao
    Moderator

    Hi There,

    This is possible by editing the page templates. Would you mind sharing your URL with us so we can assist you?

    While you get back to us, 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.

    https://community.theme.co/kb/customization-best-practices/

    Thanks

    Joao

    #1074904
    Kobber
    Participant
    This reply has been marked as private.
    #1075117
    Joao
    Moderator

    Hi There,

    In order to achieve that you need to create a Child Theme otherwise once you update your theme your modifications will be lost.

    In The meanwhile please have a look at this article.

    http://webdesign.tutsplus.com/articles/the-truth-about-multiple-h1-tags-in-the-html5-era–webdesign-16824

    Hope it helps

    Joao

    #1076313
    Kobber
    Participant

    Hi,

    I’ve installed the child theme now. What’s next?

    I’ve read the article, but I have to say that the article is old, and to my knowledge (I have a master in online marketing management) double H1 is no good. Maybe I’m wrong since the first is hidden in the header, but I want to be in full control of SEO.

    #1076442
    Joao
    Moderator

    Hi There,

    Thanks for writing in!

    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!

    Joao

    #1077542
    Kobber
    Participant

    Oh… I don’t quite know how to create a php-file. Can you help me with this?

    #1077699
    Rue Nel
    Moderator

    Hello Again,

    Simply follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new 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>

    3] Save the file named as _brand.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/global/

    Please let us know how it goes.

    #1077740
    Kobber
    Participant

    Hi again,

    Well I did it, but after checking several SEO analyze tools, I can’t see any difference.

    #1077751
    JvP
    Participant

    Why are there 2 H1’s to begin with?

    #1077805
    Kobber
    Participant

    Well I’ve set one, which is the one keyword or sentence I would like for that page. What the idea is with the hidden one (which is the same as the domain name), I can’t tell.

    #1077879
    Paul R
    Moderator

    Hi,

    I checked the code in your homepage and I can only see one h1

    http://screencast.com/t/LqyBVYp22xI

    May I know what seo tool you are using.

    Thanks

    #1077891
    Kobber
    Participant

    I’ve just checked again, and it looks fine now.

    Thanks for your help and have a nice weekend 🙂

    #1078080
    Joao
    Moderator

    Glad to hear it.

    Great weekend 4 you too 🙂

    Joao

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