wrap-nav id and wrap-nav class for all menus

This commit is contained in:
Alexander Agnarson 2020-08-24 13:04:45 +02:00
parent a1b6d40a41
commit bddd7a0d35
4 changed files with 15 additions and 8 deletions

View file

@ -49,7 +49,9 @@
<?php } ?>
<?php if ( has_nav_menu('footer') ): ?>
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'footer','menu_id' => 'nav-footer','fallback_cb'=> false)); ?>
<div id="wrap-nav-footer" class="wrap-nav">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'footer','menu_id' => 'nav-footer','fallback_cb'=> false)); ?>
</div>
<?php endif; ?>
<div class="container" id="footer-bottom">

View file

@ -21,7 +21,7 @@
<header id="header" class="group">
<?php if ( has_nav_menu('mobile') ): ?>
<div id="wrap-nav-mobile">
<div id="wrap-nav-mobile" class="wrap-nav">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'mobile','menu_id' => 'nav-mobile','fallback_cb'=> false)); ?>
<?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?>
@ -44,7 +44,7 @@
<?php endif; ?>
<?php if ( has_nav_menu('topbar') ): ?>
<div id="wrap-nav-topbar">
<div id="wrap-nav-topbar" class="wrap-nav">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'topbar','menu_id' => 'nav-topbar','fallback_cb'=> false)); ?>
<?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?>
@ -94,7 +94,9 @@
</div><!--/.container-->
<?php if ( has_nav_menu('header') ): ?>
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'header','menu_id' => 'nav-header','fallback_cb'=> false)); ?>
<div id="wrap-nav-header" class="wrap-nav">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'header','menu_id' => 'nav-header','fallback_cb'=> false)); ?>
</div>
<?php endif; ?>
</header><!--/#header-->

View file

@ -2,7 +2,6 @@
Contributors: alxmedia
Requires at least: 5.0
Tested up to: 5.5
Version: 1.2.9
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: blog, one-column, two-columns, three-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
@ -90,6 +89,9 @@ Right sidebar images
== Changelog ==
= 1.3.0 - 2020-08-24 =
* Fixed markup of header and footer menus
= 1.2.9 - 2020-08-19 =
* Fixed menu margin with centered layout

View file

@ -1,7 +1,7 @@
/*
Theme Name: Typecore
Theme URI: http://alx.media/themes/typecore/
Version: 1.2.9
Version: 1.3.0
Requires at least: 5.0
Requires PHP: 5.6
Tested up to: 5.5
@ -610,10 +610,11 @@ box-shadow: -1px 0 0 rgba(255,255,255,0.1); }
/* menu hide and display */
@media only screen and (min-width: 720px) {
.mobile-menu #nav-mobile-nav { display: none; }
.mobile-menu #wrap-nav-mobile { display: none; }
}
@media only screen and (max-width: 719px) {
.mobile-menu #nav-header-nav { display: none; }
.mobile-menu #wrap-nav-topbar,
.mobile-menu #wrap-nav-header { display: none; }
#nav-mobile,
#nav-topbar,
#nav-header,