Skip to content

Commit

Permalink
Submenu design changes-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinbphp committed Mar 29, 2024
1 parent 86d56cb commit 14fbbde
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion assets/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@
text = curr.prev().text(),
currIndex = curr.parents('li').index();
curr.parents('li').addClass('with-sub-nav');
/*curr.remove();*/
/* curr.remove(); */
$('<div class="sub-nav" data-order="' + currIndex + '"><a class="back-btn">' + text + '</a></div>').appendTo('header .holder').append(cloned);
})

Expand Down
1 change: 0 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ function start_lvl(&$output, $depth = 0, $args = NULL)
);
$class_names = implode(' ', $classes);

// build html
if ($display_depth === 1) :

$output .= "\n" . $indent . '<ul class="' . $class_names . '">' . "\n";
Expand Down
14 changes: 7 additions & 7 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ function gtag() { dataLayer.push(arguments); }
<nav>
<ul class="main-nav">
<?php
wp_nav_menu(
array(
'menu' => 'Main Menu',
'container' => false, 'items_wrap' => '%3$s',
'walker' => new CustomMenuHierarchyClass()
)
); ?>
wp_nav_menu(
array(
'menu' => 'Main Menu',
'container' => false, 'items_wrap' => '%3$s',
'walker' => new CustomMenuHierarchyClass()
)
); ?>
</ul>
</nav>
<a href="#" class="nav-trigger">
Expand Down
3 changes: 2 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
font-size: 14px;
}
}

@media (min-width:961px) {
header .holder .logo{
width: 200px;
Expand All @@ -29,6 +30,7 @@
padding: 38px 12px;
}
}

@media (min-width:1231px) {
header .holder .logo{
width: 330px;
Expand All @@ -38,7 +40,6 @@
}
}


/* main menu design start */
header .holder{
overflow: visible !important;
Expand Down

0 comments on commit 14fbbde

Please sign in to comment.