Shopify themes, liquid, logos, and UX
Is there any way to stop the top bar from hide on mobile? I have the turbo theme 7.0.2 and my website is projects817.com
Solved! Go to the solution
This is an accepted solution.
Hi @Only1mrsfragili ,
You can follow the instruction below:
1. Go to Online Store->Theme->Edit code
2. Asset->/styles.css->paste below code at the bottom of the file:
@media (max-width: 798px) {
.header {
display: block !important;
position: fixed;
top: 30px;
z-index: 99999;
}
.header .promo-banner,
.header .main-nav__wrapper,
.header .social_icons,
.header .menu li,
.header .top-bar--right-menu {
display: none !important;
}
.header .menu li:first-child {
display: block !important;
text-align: center;
max-height: 40px;
}
#header .top-bar {
margin-top: 40px;
}
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
AVADA - Top Rated App for Email, SMS, Popups
Check our website for full features and start a FREE TRIAL.
Install another app to boost sales, 100% FREE
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
thanks
can you try this code
1. Go to Online Store->Theme->Edit code
2. Asset->/styles.css ->paste below code at the bottom of the file.
@media only screen and (max-width: 798px) {
.promo-banner--show .promo-banner {display: none !important;}
}
Hi, that code didn't work for want I want. I want for both of the bars above the menu to show even on mobile view. At the moment the bar with the number hides on mobile and I want for it to show.
can you show where did you add this code?
I added the code here and it made both bars ago away and that is the opposite of what I want.
can you this
@media(max-width: 798px) {
.promo-banner--show .promo-banner {display: none !important;}
}
This didn’t work either, also I’m confused on why the code says none. Doesn’t that take way the top bar? I would like to see them both like this on mobile. I don’t want to take anything away. I wanna sed the free shipping and the phone number.
This is an accepted solution.
Hi @Only1mrsfragili ,
You can follow the instruction below:
1. Go to Online Store->Theme->Edit code
2. Asset->/styles.css->paste below code at the bottom of the file:
@media (max-width: 798px) {
.header {
display: block !important;
position: fixed;
top: 30px;
z-index: 99999;
}
.header .promo-banner,
.header .main-nav__wrapper,
.header .social_icons,
.header .menu li,
.header .top-bar--right-menu {
display: none !important;
}
.header .menu li:first-child {
display: block !important;
text-align: center;
max-height: 40px;
}
#header .top-bar {
margin-top: 40px;
}
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
AVADA - Top Rated App for Email, SMS, Popups
Check our website for full features and start a FREE TRIAL.
Install another app to boost sales, 100% FREE
I'm having the same issue but the code(s) aren't working. The menu bar is still not locked on the mobile version of the site.
User | RANK |
---|---|
169 | |
152 | |
70 | |
46 | |
34 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023