Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active Aug 13, 2017
Embed
What would you like to do?
Beaver Builder Theme Remove Mobile Menu
@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;
}
}
(function($){
$('.fl-page-header').removeClass('fl-page-nav-toggle-visible-mobile fl-page-nav-toggle-icon');
$('.navbar-toggle').remove();
})(jQuery);
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