Shopify themes, liquid, logos, and UX
Hi Guys,
Can someone please give me the code to make my banner text with button show on the mobile version. Right now it's only showing on the desktop. My site is zerogravityrcs.com. I am using the dawn theme.
Thanks!
Solved! Go to the solution
This is an accepted solution.
Add this one then.
@media screen and (max-width: 767px){
.videoBackground .videoBoxInfoBtn, .videoBackground .imageBoxInfoBtn {
padding: 8px 25px;
font-size: 15px !important;
}
}
And Save.
Please, dont forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @MrGolfer_
It seems like you button and title are hide on the mobile. Mostly in the mobile it will go automatically below the banner or video banner.
like this(I colored the background so it would be visible)
This is the code.
@media screen and (max-width: 767px){
.videoBoxInfoTitle, .videoBackground .videoBoxInfoBtn {
display: inline-block !important;
}
.videoBackground .videoBoxInfo {
background: aqua;
}
}
Thank you for your help, but this looks awful. I would like it to sit on top the exact same way as the homepage please and thank you.
Yeah, that is why I let you know so i can add changes.
Check this one. Same Instruction.
@media screen and (max-width: 767px){
.videoBoxInfoTitle, .videoBackground .videoBoxInfoBtn {
display: inline-block !important;
}
.videoBackground .videoBoxInfo {
background: transparent;
position: absolute;
padding-bottom: 25px;
}
}
@media only screen and (max-width: 621px){
.videoBackground .videoBoxInfoTitle, .videoBackground .imageBoxInfoTitle {
line-height: 1 !important;
}
}
And Save.
Result:
Very close :). Now can we make the font and shop now box a bit smaller. Also push the "shop now" box up a big higher.
Im not sure what size you like, but you can change it.
The padding bottom you can adjust it.
Replace on this again.
@media screen and (max-width: 767px){
.videoBoxInfoTitle, .videoBackground .videoBoxInfoBtn {
display: inline-block !important;
font-size: 30px !important;
}
.videoBackground .videoBoxInfo {
background: transparent;
position: absolute;
padding-bottom: 20% !important;
}
}
@media only screen and (max-width: 621px){
.videoBackground .videoBoxInfoTitle, .videoBackground .imageBoxInfoTitle {
line-height: 1 !important;
}
}
And Save.
SOO CLOSE! Font is perfect, but shop now is HUGE lol. Which code is the "shop now" box? I will adjust it.
This is an accepted solution.
Add this one then.
@media screen and (max-width: 767px){
.videoBackground .videoBoxInfoBtn, .videoBackground .imageBoxInfoBtn {
padding: 8px 25px;
font-size: 15px !important;
}
}
And Save.
Please, dont forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you so much! You're awesome 😀
Thank you so much!
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024