WEN Business
Step 1 – Remove Residual Menu Styling
In your Child Theme’s functions.php file, insert the following function:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
/** * Site branding * * @since WEN Business 1.0 */ function wen_business_site_branding() { ?> <div class="site-branding"> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <?php if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) : ?> <?php the_custom_logo(); ?> <?php else : ?> <?php $site_logo = wen_business_get_option( 'site_logo' ); ?> <?php if ( ! empty( $site_logo ) ) : ?> <img src="<?php echo esc_url( $site_logo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" /> <?php else : ?> <?php bloginfo( 'name' ); ?> <?php endif; ?> <?php endif; ?> </a></h1> <?php $show_tagline = wen_business_get_option( 'show_tagline' ); ?> <?php if ( 1 == $show_tagline ) : ?> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> <?php endif ?> </div><!-- .site-branding --> <?php wp_nav_menu( array( 'theme_location' => 'primary' , 'container' => 'nav' , 'container_class' => 'main-navigation' , ) ); ?> <?php } |
Important: Extra care must be taken when editing PHP files. Take a backup of the file first and make sure the code you paste is exactly the same as it is here.
Step 2 – Remove duplicate mobile menu button
Under Appearance > Customize > Additional CSS insert the following:
1 2 3 |
#mobile-trigger { display: none !important; } |