Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #102977
    Aitor
    Participant

    Hello, I hope you can help me with this h1 matter.

    When I search for h1 more that one h1 show up. How can I eliminate those ones:

    (1)
    <div id=”site-header”>
    <h1 class=”site-title”></h1>
    <h2 class=”site-description”></h2>

    with no content and

    (2)
    <h1 class=”assistive-text”>Primary Menu</h1>
    Maybe the class has to stay?

    Thanks so much for your help. Best regards
    Petra

    #102978
    Aitor
    Participant

    Please feel free to check directly in the page of https://arteuno.com. Thank you very much.

    #103020
    Mahesh
    Participant

    @arteuno: I checked you site and understood what you meant. If you want to replace H1 header, you’ll need to create child theme. You can find more details on creating child theme HERE. Then in your child theme override certain functions, to replace H1 in the pages.
    By the way, are you having any issues with multiple H1 in the page?

    Regards,
    Mahesh

    #103339
    Aitor
    Participant

    Hello Mahesh. Thanks a lot to respond to me. I rather would like to eliminate the H1 saying “primary menu” and the other H1 and H2 -please see above – including no content for all pages in order not to have only a single H1 in the page. Please tell me how I can do that? Thanks a lot for your help.

    #103341
    Aitor
    Participant

    Tried not to include information for the site header but H1 and H2 are shown in the code. If the assistive text “primery menu” can be eliminated that would be great. The issue is a Seo one. Thanks again for your help.

    #103405
    Mahesh
    Participant

    @arteuno: In HTML5, you can have more then one H1 tag. That was issue only when you use HTML4 tags. In HTML5, H1 tag per article tag is good for SEO and we have carefully designed H1 tags with special attention on header tag and headings
    Catch Everest theme is build in HTML5, CSS3 and Responsive design. So, H1 is better for SEO then H2.
    You can also check this Video http://www.youtube.com/watch?v=GIn5qJKU8VM by Google software engineer Matt Cutts, who clearly states that you can use multiple H1 but don’t over do it. Also use h1 specific to heading and header tags.
    You can also check this article URL http://html5doctor.com/html5-seo-search-engine-optimisation/
    But if you really want to change it, you can change it by building child theme and editing it. I recommend you to hire a customizer.

    For eliminating H1 Primary menu assistive text, create a child theme and add the following code in you child theme’s functions.php

    function catchbase_primary_menu() {
        $options  = catchbase_get_theme_options();
        if ( !$options['primary_menu_disable'] ) :
        	?>
        	<nav class="nav-primary <?php echo ( !$options['primary_search_disable']  ) ? 'search-enabled' : '';?>" role="navigation">
                <div class="wrapper">
                    <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'catch-base-pro' ); ?>"><?php _e( 'Skip to content', 'catch-base-pro' ); ?></a></div>
                    <?php
                        if ( has_nav_menu( 'primary' ) ) {
                            $catchbase_primary_menu_args = array(
                                'theme_location'    => 'primary',
                                'menu_class'        => 'menu catchbase-nav-menu',
                                'container'         => false
                            );
                            wp_nav_menu( $catchbase_primary_menu_args );
                        }
                        else {
                            wp_page_menu( array( 'menu_class'  => 'menu catchbase-nav-menu' ) );
                        }
                        if ( !$options['primary_search_disable'] ) :
                            ?>
                            <div id="search-toggle" class="genericon">
                                <a class="screen-reader-text" href="#search-container"><?php _e( 'Search', 'catch-base-pro' ); ?></a>
                            </div>
    
                            <div id="search-container" class="displaynone">
                                <?php get_Search_form(); ?>
                            </div>
                            <?php
                        endif;
                        ?>
            	</div><!-- .wrapper -->
            </nav><!-- .nav-primary -->
            <?php
        endif;
    }

    Regards,
    Mahesh

    #103415
    Aitor
    Participant

    Hi Mahesh,
    thanks so much for your response. I will think about it and in case of removing the primery menu I will contact again.
    Kind regards
    Aitor

    #103440
    Mahesh
    Participant

    @arteuno: Thank you for your appreciation. Have a nice day!

    Regards,
    Mahesh

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Different in the pages. Reduce to one’ is closed to new replies.