forked from LiveCarta/LiveCartaWP
mobile menu fix
This commit is contained in:
@@ -79,6 +79,7 @@ require_once 'inc/walker-nav-menu.php';
|
||||
</a>
|
||||
</div>
|
||||
<div class="mobile-nav" style="display: none;">
|
||||
<div class="mm-bg">
|
||||
<?php
|
||||
if (has_nav_menu('top')) {
|
||||
wp_nav_menu([
|
||||
@@ -130,6 +131,7 @@ require_once 'inc/walker-nav-menu.php';
|
||||
<!-- <a href="#" class="button bordered">LOGIN</a>-->
|
||||
<!-- <a href="#" class="button bordered">REGISTER</a>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
<iframe src="<?= get_lawcarta_url()?>/menu" style="display: none;"></iframe>
|
||||
|
||||
@@ -176,7 +178,7 @@ require_once 'inc/walker-nav-menu.php';
|
||||
jQuery('.btn-toggle-menu').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
jQuery(this).toggleClass('on');
|
||||
jQuery('.mobile-nav').slideToggle(300);
|
||||
jQuery('.mobile-nav').toggleClass('show');
|
||||
});
|
||||
</script>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user