Tagged: h1, primary menu
- This topic has 3 replies, 2 voices, and was last updated 7 years, 11 months ago by Mahesh.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
January 11, 2017 at 5:12 pm #106909DanielParticipant
HI,
I need to remove<h1 class="assistive-text">Primary Menu</h1>
Its coming up in screeming frog as follows:
Thanks
January 12, 2017 at 9:29 am #106958MaheshParticipant@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,
MaheshJanuary 12, 2017 at 6:52 pm #106981DanielParticipantTHANKS! 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.
January 13, 2017 at 9:17 am #107006 -
AuthorPosts
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.