Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #106909
    Daniel
    Participant

    HI,
    I need to remove <h1 class="assistive-text">Primary Menu</h1>
    Its coming up in screeming frog as follows:
    h1 assistive-text Primary Menu

    Thanks

    #106958
    Mahesh
    Participant

    @amansad: For that you’ll need to create a child theme. You can find more details on creating child theme HERE. Then in your child theme’s functions.php add the following codes.

    function clean_journal_primary_menu() {
        ?>
    	<nav class="nav-primary 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', 'clean-journal' ); ?>"><?php _e( 'Skip to content', 'clean-journal' ); ?></a></div>
                <?php
                    if ( has_nav_menu( 'primary' ) ) { 
                        $clean_journal_primary_menu_args = array(
                            'theme_location'    => 'primary',
                            'menu_class'        => 'menu clean-journal-nav-menu',
                            'container'         => false
                        );
                        wp_nav_menu( $clean_journal_primary_menu_args );
                    }
                    else {
                        wp_page_menu( array( 'menu_class'  => 'menu clean-journal-nav-menu' ) );
                    }
                    
                    ?>
                    <div id="search-toggle" class="genericon">
                        <a class="screen-reader-text" href="#search-container"><?php _e( 'Search', 'clean-journal' ); ?></a>
                    </div>
    
                    <div id="search-container" class="displaynone">
                        <?php get_Search_form(); ?>
                    </div>
        	</div><!-- .wrapper -->
        </nav><!-- .nav-primary -->
        <?php
    }

    Regards,
    Mahesh

    #106981
    Daniel
    Participant

    THANKS! That Worked! All is well in SEO Spider now! I did however have to manually customize several settings in the child them. The Child Theme Plugin I used didnt carry all settings over for some reason. All good though.

    #107006
    Mahesh
    Participant

    @amansad: Glad to know you’ve fixed it. Have a nice day!

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Clean Journal Header Tag Issue – remove h1 primary menu’ is closed to new replies.