Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active August 13, 2017 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilgee/c5bcbd9b372ac510f3182d63ba884800 to your computer and use it in GitHub Desktop.
Save neilgee/c5bcbd9b372ac510f3182d63ba884800 to your computer and use it in GitHub Desktop.
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