Hello,
I would like to create a 2nd header menu with clickable tabs only on mobile with my main collections. Maybe sticky, maybe not.
Please check the image as a finish reference
website: 1989streetwear.com
pw: bet1989
Hello,
I would like to create a 2nd header menu with clickable tabs only on mobile with my main collections. Maybe sticky, maybe not.
Please check the image as a finish reference
website: 1989streetwear.com
pw: bet1989
We’ve tried inserting some HTML and CSS code into your site to help you create a second header. Please follow these steps:
Step 1: Go to Online store => Themes => Edit code
Step 2: Find the file “header.liquid”, and paste the following code at the end of the closing header tag ()
- WOMAN
- |
- MAN
- |
- UNISEX
A note is that the name of the collection you assigned as below, so you need to customize it with the name you want to display and add the URL to the href for them.
- WOMAN
- |
- MAN
- |
- UNISEX
We hope that it will work for you.
Thank you so much @BSS-Commerce I really appreciate it! It looks great.
Although is there any chance I can get the tab coloured when the collection is selected and in action? Something like this?
- WOMAN
- |
- MEN
- |
- UNISEX
We hope that it will work for you.
@BSS-Commerce No, not really. I wanted to get something like this
Yes, we have edited it as you want:
You need to change the code like our previous comment and add a little CSS, from:
.bss-header-ul li.active {
background-color: #fff;
}
to:
.bss-header-ul li.active {
background-color: #fff;
padding: 0 20px;
}
Editing on google chrome’s DEV tool makes it difficult for us. So, if possible, please share your store access with us (we will send you a collaborator request) to edit the theme.
If you need further help, please let us know.
Hi @BSS-Commerce How can I give you access to edit the theme?
If I do could you please make it like this?
And also could you please remove the quick menu when the burger/drawer menu is open on mobile?
THANK YOU
@1989streetwear we have just sent you a collaborator request to Shopify Admin => Settings => Users and Permissions => Collaborators => BSS Commerce to have access and check your settings. After accepting the request, please kindly keep me updated. Thanks so much!
Hi @BSS-Commerce I’ve accepted your collaborator request with “Theme” as a permission. Is that enough?
Looking forward to hearing from you
We accessed your theme and added some code:
- [WOMEN](https://1989streetwear.com/collections/shop-women)
- |
- [MEN](https://1989streetwear.com/collections/shop-men)
- |
- [UNISEX](https://1989streetwear.com/collections/shop-unisex)
/* start bss fix */
.bss-header-2-disactive {
display: none !important;
}
/* end bss fix */
We hope that it fits your requirement.
Hi @BSS-Commerce Thank you so much, this is really looking great.
Although there are a few things I would love to fix and it’d be really great if you could still help me:
I AM TRYING TO FIX THIS WITH PADDING AND MARGIN pixels BUT IT’S OBVIOUSLY DIFFERENT ON DIFFERENT DEVICES. I need to find another way that would work similarly on different devices.
(( GAP FIXED WITH .menu-drawer__navigation { padding: 2.6rem 0 !important; } ))
Please let me know if this made sense and if you could help me
VIDEO REFERENCE:
https://drive.google.com/file/d/1536pDox8tLT6K6yL8F0vuM422VOYUbBf/view?usp=sharing
We fixed the JS code added in the file “theme.liquid”:
const toggleIcon = document.querySelector('.header__icon.header__icon--menu');
const headerBSS = document.querySelector('.bss-header-2');
toggleIcon.addEventListener('click', function () {
headerBSS.classList.toggle('bss-header-2-disactive');
});
Please double-check to see if it is correct. Also, you can set the background color of the book as you want.
Please let us know if it works for you by giving us likes or marking them as solutions.
Hi @BSS-Commerce ,
My website URL : www.babyworksbyswapnil.com
Can you PLEASE PLEASE help me achieve the same thing ?
I want my website’s mobile version to have Header menu like desktop version ( IN ONE SINGLE ROW instead of Hamburger View )
I would really be obliged if you could help me!
Thanks in advance
off sitewide
July sale — 45% off at checkout, applied automatically. Valid for 60 minutes. One per customer.
Offer ends in