Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Shopify Community Downtime: The Shopify Community will be down December 5th for 15 minutes between 3pm and 4pm EST. Thank you for your understanding.

How can I hide the first child item from the main menu?

How can I hide the first child item from the main menu?

sarizona
Excursionist
24 0 6

Hi everybody! I would like to create a first child main menu item in order to create a breadcrumb path on my collection page without showing that item as dropdown in my main menu. Thank you!

Replies 10 (10)

ZestardTech
Shopify Partner
5907 1067 1412

Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset >base.css and paste this at the bottom of the file:

#main-menu .menu-item:first-child {
display: none;
}

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
sarizona
Excursionist
24 0 6

Thanks for your quick reply, I added your css but the child is still there.

sarizona
Excursionist
24 0 6

Here a screenshot

 

shopify_community.jpg

ZestardTech
Shopify Partner
5907 1067 1412

Hello There,

Please share your store URL and Screenshot.
So that I will check and let you know the exact solution here.

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
sarizona
Excursionist
24 0 6
ZestardTech
Shopify Partner
5907 1067 1412

Hello there,

What do you want to remove, can you please share the screenshot?

 

ZestardTech_0-1682403993276.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
Dan-From-Ryviu
Shopify Partner
10256 2038 2109

Please add this CSS code in your theme.css file 

.site-nav li:nth-child(2).site-nav__dropdown { display: none !important; }

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- 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.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

sarizona
Excursionist
24 0 6

Thanks, but the dropdown is still there.

sarizona
Excursionist
24 0 6

Here is a screenshot to clarify.

shopify_community2.jpg

sarizona
Excursionist
24 0 6

Hello everybody! It appears to me that I have to change the code in site-nav.liquid that generates the dropdown menu. Can anybody help out, I don't know a thing about coding. Thanks again!