-
-
Save neilgee/c5bcbd9b372ac510f3182d63ba884800 to your computer and use it in GitHub Desktop.
Beaver Builder Theme Remove Mobile Menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width: 768px ) { | |
.fl-page-nav-wrap { | |
padding-bottom: 0; | |
} | |
.fl-full-width .fl-page-nav { | |
display: table; | |
width: auto; | |
} | |
.fl-page-nav-collapse { | |
display: block; | |
visibility: visible; | |
} | |
.fl-page-nav-collapse ul.navbar-nav > li { | |
border: none; | |
float: left; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$('.fl-page-header').removeClass('fl-page-nav-toggle-visible-mobile fl-page-nav-toggle-icon'); | |
$('.navbar-toggle').remove(); | |
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_enqueue_scripts', 'bt_remove_mobile_menu' ); | |
/** | |
* Remove Mobile Menu. | |
* @link https://pro.wpbeaverworld.com/disables-responsive-menu-effect-small-device/ original reference | |
*/ | |
function bt_remove_mobile_menu() { | |
wp_enqueue_script( 'remove-mobile-menu', FL_CHILD_THEME_URL . '/js/remove-mobile.js', array(), '1.6.1', true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment