return menu
This commit is contained in:
parent
dda8c839ed
commit
f8679f0b8e
|
@ -27,6 +27,19 @@ nav{
|
||||||
&.menu-shadow{
|
&.menu-shadow{
|
||||||
box-shadow: 0 2px 9px 0 #808080a6;
|
box-shadow: 0 2px 9px 0 #808080a6;
|
||||||
}
|
}
|
||||||
|
#menubelowHeader{
|
||||||
|
ul{
|
||||||
|
li{
|
||||||
|
&.menu-item{
|
||||||
|
@media screen {
|
||||||
|
@media (min-width: 992px){
|
||||||
|
padding-right: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@media screen {
|
@media screen {
|
||||||
@media (max-width: 768px){
|
@media (max-width: 768px){
|
||||||
border-bottom: 1px solid #cbcbcb;
|
border-bottom: 1px solid #cbcbcb;
|
||||||
|
|
|
@ -97,9 +97,9 @@ add_filter( 'get_custom_logo', 'tainacan_change_logo_class' );
|
||||||
|
|
||||||
require_once get_template_directory() . '/vendor/class-wp-bootstrap-navwalker.php';
|
require_once get_template_directory() . '/vendor/class-wp-bootstrap-navwalker.php';
|
||||||
|
|
||||||
/* register_nav_menus( array(
|
register_nav_menus( array(
|
||||||
'navMenubelowHeader' => __( 'Nav Menu Below Header', 'tainacan-theme' ),
|
'navMenubelowHeader' => __( 'Nav Menu Below Header', 'tainacan-theme' ),
|
||||||
) ); */
|
) );
|
||||||
|
|
||||||
require get_template_directory() . '/functions/enqueues.php';
|
require get_template_directory() . '/functions/enqueues.php';
|
||||||
require get_template_directory() . '/functions/customize.php';
|
require get_template_directory() . '/functions/customize.php';
|
||||||
|
|
|
@ -1,12 +1,36 @@
|
||||||
<?php
|
<?php
|
||||||
//Header with banner and menu
|
//Header with banner and menu
|
||||||
get_header('banner'); ?>
|
get_header('banner'); ?>
|
||||||
|
<?php
|
||||||
<nav aria-label="breadcrumb">
|
$bread = "<ol class='breadcrumb pb-0 mb-1' style='background: transparent'>";
|
||||||
<ol class="breadcrumb pb-0 mb-1" style="background: transparent;">
|
$bread .= "<li class='breadcrumb-item'><a href='#'>Home</a></li>";
|
||||||
<li class="breadcrumb-item"><a href="#">Home</a></li>
|
$bread .= "<li class='breadcrumb-item'><a href='#'>Site</a></li>";
|
||||||
<li class="breadcrumb-item"><a href="#">Site</a></li>
|
$bread .= "<li class='breadcrumb-item active' aria-current='page'>Blog</li>";
|
||||||
<li class="breadcrumb-item active" aria-current='page'>Blog</li>
|
$bread .= "</ol>";
|
||||||
</ol>
|
?>
|
||||||
|
<nav class="navbar navbar-expand-md navbar-light bg-white px-1" role="navigation">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<?php if(wp_is_mobile()) echo $bread; ?>
|
||||||
|
<a class="navbar-brand" href="#"></a>
|
||||||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
|
<button class="navbar-toggler text-heavy-metal border-0 px-2 pt-2" type="button" data-toggle="collapse" data-target="#menubelowHeader" aria-controls="menubelowHeader" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<i class="material-icons">more_vert</i>
|
||||||
|
</button>
|
||||||
|
<?php
|
||||||
|
wp_nav_menu( array(
|
||||||
|
'theme_location' => 'navMenubelowHeader',
|
||||||
|
'depth' => 1, // 1 = with dropdowns, 0 = no dropdowns.
|
||||||
|
'container' => 'div',
|
||||||
|
'container_class' => 'collapse navbar-collapse',
|
||||||
|
'container_id' => 'menubelowHeader',
|
||||||
|
'menu_class' => 'navbar-nav mr-auto ml-md-1',
|
||||||
|
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
|
||||||
|
'walker' => new WP_Bootstrap_Navwalker()
|
||||||
|
) );
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<nav aria-label="breadcrumb" class="d-none d-md-flex">
|
||||||
|
<?php echo $bread; ?>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="container-fluid mt-5">
|
<div class="container-fluid mt-5">
|
Loading…
Reference in New Issue