Shopify themes, liquid, logos, and UX
I have looked at many posts but none of them work for me, I want it to look the same as it looks on the desktop but on the mobile.
Any help is welcome!
Solved! Go to the solution
This is an accepted solution.
Hi @ArnauP
Please, use the heading feasturesof the banner so it will be dynamic to any screen sizes.
Check this one.
@media only screen and (max-width: 749px){
.banner__box.content-container.content-container--full-width-mobile {
position: absolute;
bottom: 0;
padding-bottom: 1rem;
}
.banner__box a.button.button--primary {
font-size: 12px !important;
padding: 0 10px !important;
min-height: 3.5rem !important;
min-width: fit-content !important;
}
.banner__box>*+.banner__buttons {
margin-top: 1rem;
}
}
Im not sure if it enough.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @ArnauP
Would you mind to share your store URL? Thanks!
This is an accepted solution.
Hi @ArnauP
Please, use the heading feasturesof the banner so it will be dynamic to any screen sizes.
Check this one.
@media only screen and (max-width: 749px){
.banner__box.content-container.content-container--full-width-mobile {
position: absolute;
bottom: 0;
padding-bottom: 1rem;
}
.banner__box a.button.button--primary {
font-size: 12px !important;
padding: 0 10px !important;
min-height: 3.5rem !important;
min-width: fit-content !important;
}
.banner__box>*+.banner__buttons {
margin-top: 1rem;
}
}
Im not sure if it enough.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @ArnauP
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px) {
.banner__box>*+.banner__buttons {
margin-top: 42% !important;
}
.banner .banner__buttons .button {
font-size: 14px !important;
padding: unset !important;
margin-top: 100% !important;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
It work, but the heading of the banner stays up, and do you know how the button could be made smaller? (on mobile)
you have to customize your code because of the html structure to do responsive as you want is quite difficult.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We 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, 2024