Hide Dropdown Menu without deleting the sub-menu items?

Hide Dropdown Menu without deleting the sub-menu items?

charlieart_dept
New Member
4 0 0

I'd like to hide the dropdown menu from our website - but I need to keep the menu items in the navigation because I am using them for another filter system within the website.

 

I wondered if someone knows how to just hide the dropdown menu from the navigation?

 

Im using Dawn theme, this is the website currently : https://newprojects-9734.myshopify.com/

 

Thanks

Replies 7 (7)

Dan-From-Ryviu
Shopify Partner
9668 1936 1971

Hi @charlieart_dept 

You can do that by adding this CSS code at the bottom of your base.css file 

.header__submenu { display: none !important; }

- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

charlieart_dept
New Member
4 0 0

Hey Dan,

 

Thanks so much, it works. But the main navigation item doesn't seem to work as a link through to  a collection.. 

 

ie. SHOP in the navigation doesnt open the page its linked to in the navigation? I wonder if this is something to do with the click opening the sub menu and not the actual link? do you know if this can be changed? 

 

Thank you!

Dan-From-Ryviu
Shopify Partner
9668 1936 1971

Hi @charlieart_dept 

You can make that link clickable by editing header-dropdown-menu.liquid file.

Go to line 19 and adding this line of code 

<a href="{{ link.url }}" >

Then add this tag before </span>

</a>

So code look like this Screenshot 2023-09-26 at 14.29.41.png

- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

charlieart_dept
New Member
4 0 0

Thanks again,

 

I cant seem to find the header-dropdown-menu.liquid file? Am I missing something?

 

thank you

charlieart_dept
New Member
4 0 0

@Dan-From-Ryviu 

sorry to bother you, wondered if you had any ideas about the above? thanks

Dan-From-Ryviu
Shopify Partner
9668 1936 1971

Hi @charlieart_dept 

Please try to search any menu files in your theme 

- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Webstablish
Shopify Partner
28 2 5

Hi @charlieart_dept,

 

If you'd like to do this without changing your theme, check out the app MenuQoL. Seems to fit your use case (and results in a link that is clickable).

MenuQoL: Hide & Copy Menus | Tutorial
- Hide menu items instead of deleting and recreating them later
- Quickly copy entire menus (or individual menu items)