Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1038686
    Shervin6623
    Participant

    Hi
    I use sequake & it shows me that some of my pages has multiple H1 tags, check this for example:
    http://www.pestguru.com.au/pest-control-prices/

    & see this picture I Attached,
    please help me to fix this 🙂
    many thanks

    #1038712
    Shervin6623
    Participant

    The same problem with many other pages, although I disabled page title in all of them
    check for the main page: http://www.pestguru.com.au/
    it say that my H1 tag is Pest Guru! I cannot find it anywhere! & this is very important for me to fix in case of ranking

    #1039074
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! The issue occurred because you have used h1 as a wrapper tag of your image. Please see the screenshot below:

    I would suggest that you edit the page and change the tag which enclosed the image.
    Please let us know how it goes.

    #1039389
    Shervin6623
    Participant

    Thanks Rue I fix the price page,

    I use firebug for my homepage & it shows that the theme uses logo alt tag as H1 tag, how can I fix that one ?

    many thanks

    #1039493
    Shervin6623
    Participant

    Any suggestion for homepage H1 tag?

    #1039532
    Shervin6623
    Participant

    I Also have this problem with my Blog posts:
    http://www.pestguru.com.au/garden-pests-identification-australia/
    how can I disable post title? like page title

    #1039541
    Paul R
    Moderator

    Hi,

    To remove that, 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 . '">';
    
    ?>
    
    <?php echo ( is_front_page() ) ? '<div class="visually-hidden">' . $site_name . '</div>' : ''; ?>
    
    <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.

    #1039610
    Shervin6623
    Participant

    Dear Paul the code work great for the first page, I still have problem with blog posts, I can not disable the titles H1

    #1039820
    Jade
    Moderator

    Hi there,

    Do you mean you want to change the h1 to something else? If so, create a file named _content-post-header.php in wp-content/themes/x-child/framework/views/ethos then add this code:

    
    <?php
    
    // =============================================================================
    // VIEWS/ETHOS/_CONTENT-POST-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Standard <header> output for various posts.
    // =============================================================================
    
    ?>
    
    <header class="entry-header">
      <?php if ( is_single() ) : ?>
        <?php x_entry_navigation(); ?>
        <!-- Change h1 here -->
        <h1 class="entry-title"><?php the_title(); ?></h1>
      <?php else : ?>
        <h2 class="entry-title">
          <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
        </h2>
      <?php endif; ?>
      <?php x_ethos_entry_meta(); ?>
    </header>

    I’ve added the indication in the code where you could change the h1 on the part that says <!-- Change h1 here -->

    Hope this helps.

    #1040611
    Shervin6623
    Participant

    Dear Jade,

    I add the code but not working,
    I want this, please have a look at this page: http://www.pestguru.com.au/effective-mosquito-repellent-remedies/
    You see in the picture it show it has two H1, one from title another one from context (that I added) – The thing is with pages, you can disable the titles from page edit & just add yours in the context but for posts we dont have such option, so if I add any H1, it will be more than two.

    So how can I fix this one?

    #1041061
    Paul R
    Moderator

    Hi,

    Please note that you still need to change the h1 in the code provided above.

    eg.

    
    
    <?php
    
    // =============================================================================
    // VIEWS/ETHOS/_CONTENT-POST-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Standard <header> output for various posts.
    // =============================================================================
    
    ?>
    
    <header class="entry-header">
      <?php if ( is_single() ) : ?>
        <?php x_entry_navigation(); ?>
        <!-- Change h1 here -->
        <div class="entry-title"><?php the_title(); ?></div>
      <?php else : ?>
        <h2 class="entry-title">
          <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
        </h2>
      <?php endif; ?>
      <?php x_ethos_entry_meta(); ?>
    </header>
    

    Hope that helps.

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