Travel Log
Remove Residual Styling
Residual theme styling will cause elements in sub menus to appear and disappear.
To fix this first create a Child Theme and activate it.
In the Child Theme functions.php file, add the following:
1 2 3 4 5 6 7 8 9 |
function travel_log_main_menu() { ?> <nav id="site-navigation" class="" role="navigation"> <div class="wrap-menu-content"> <?php wp_nav_menu( array( 'theme_location' => 'primary-menu' ) ); ?> </div> </nav> <?php } |
Important: This change involves editing a PHP file which can be dangerous. Test your changes locally or on a staging site before making any changes on a live site.
Fix Mobile Menu
Go to Appearance > Customize > Additional CSS and enter the following:
1 2 3 4 5 6 7 8 9 |
@media (max-width: 992px) { .mega-menu-primary-menu #simple-menu { display: none; } .mega-menu-primary-menu .site-header #main-nav { float: none; padding-right: 0; } } |