Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to theme in preparation for new menu module #343

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion _dev/css/theme/components/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import "customer/index";
@import "cart/index";
@import "cms/index";
@import "menu/index";
@import "404/index";
@import "newsletter/index";
@import "homeslider/index";
Expand Down
1 change: 0 additions & 1 deletion _dev/css/theme/components/menu/_index.scss

This file was deleted.

144 changes: 0 additions & 144 deletions _dev/css/theme/components/menu/_mainmenu.scss

This file was deleted.

4 changes: 0 additions & 4 deletions _dev/js/theme/components/header/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOMReady } from '../../../utils/DOM/DOMHelpers';
import useTopMenu from './useTopMenu';
import useStickyElement from '../useStickyElement';

const initStickyHeader = () => {
Expand All @@ -14,8 +13,5 @@ const initStickyHeader = () => {
};

DOMReady(() => {
const { init: initTopMenu } = useTopMenu('.js-main-menu');

initTopMenu();
initStickyHeader();
});
42 changes: 0 additions & 42 deletions _dev/js/theme/components/header/useTopMenu.js

This file was deleted.

2 changes: 2 additions & 0 deletions config/theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ global_settings:
- is_shoppingcart
- is_imageslider
- is_searchbar
- is_mainmenu
to_disable:
- blockreassurance
- ps_searchbar
- ps_shoppingcart
- ps_imageslider
- blockwishlist
- ps_mainmenu
hooks:
modules_to_hook:
displayNav1:
Expand Down
2 changes: 1 addition & 1 deletion templates/_partials/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
href="#"
role="button"
data-bs-toggle="offcanvas"
data-bs-target="#mobile_top_menu_wrapper"
data-bs-target="#mobile_menu_offcanvas"
>
<div class="header-top__icon-container">
<span class="header-top__icon material-icons">menu</span>
Expand Down
2 changes: 0 additions & 2 deletions templates/_partials/mobile-modals.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

{include file="_partials/modal-search.tpl"}

{include file="_partials/modal-menu.tpl"}

{include file="_partials/modal-filters.tpl"}
12 changes: 0 additions & 12 deletions templates/_partials/modal-menu.tpl

This file was deleted.

2 changes: 2 additions & 0 deletions templates/layouts/layout-both-columns.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
{include file="_partials/page-loader.tpl"}
{/block}

{hook h='displayMobileMenu'}

</body>

</html>