Shopify themes, liquid, logos, and UX
Afternoon,
The button on our homepage (mobile view specifically) needs moving down. (Screenshot attached)
www.railtimes.live
Any help would be much appreciated!
Solved! Go to the solution
This is an accepted solution.
<style>
@media screen and (max-width: 767px) {
a.btn.pill.alt.animation.bottom-to-top {
margin-top: 10rem !important;
}
}
</style>
hey @railtimeslive dear follow these steps
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body> ----->
before the body ----->
if this code work please do not forget to like and mark it solution
Hello @railtimeslive
Yes, the button on your homepage in mobile view can definitely be repositioned with a quick CSS adjustment. Please share access to your theme (or collaborator access if you'd like me to take a direct look), or you can try adding the following CSS:
@media screen and (max-width: 749px) { .your-button-class { margin-top: 40px !important; /* Adjust value as needed */ } }
Replace .your-button-class with the actual class or ID of the button.
If you have any issues please let me know,
This is an accepted solution.
<style>
@media screen and (max-width: 767px) {
a.btn.pill.alt.animation.bottom-to-top {
margin-top: 10rem !important;
}
}
</style>
hey @railtimeslive dear follow these steps
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body> ----->
before the body ----->
if this code work please do not forget to like and mark it solution
Thanks so much!!
Is there a way to move it up on desktop view only?
Thanks again
<style>
@media screen and (min-width: 768px) {
a.btn.pill.alt.animation.bottom-to-top {
margin-bottom: 5rem !important;
}
}
</style>
hey @railtimeslive dear follow these steps
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body> ----->
before the body ----->
if this code work please do not forget to like
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025