Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

Move button on homepage down (Mobile only)

Solved

Move button on homepage down (Mobile only)

railtimeslive
Tourist
11 0 10

Afternoon, 

The button on our homepage (mobile view specifically) needs moving down. (Screenshot attached)

www.railtimes.live

Any help would be much appreciated! 

WhatsApp Image 2025-05-26 at 13.11.46.jpeg

Accepted Solution (1)

Mustafa_Ali
Trailblazer
455 47 85

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>

Mustafa_Ali_0-1748262970267.png

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

 

View solution in original post

Replies 4 (4)

MandasaTech
Shopify Partner
781 154 166

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,

☞ Helpful or Question answered? Please Click Like & Mark it Accepted Solution
☞ Want to modify or custom changes on store for affordable price? Click on Contact button here
☞ Email at experts@mandasa.in
☞ Whatsapp at +918989609120 | Hire us at: Website Support Page
☞ Selling Shopify Fundamentals: Verified Skill Badge

Mustafa_Ali
Trailblazer
455 47 85

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>

Mustafa_Ali_0-1748262970267.png

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

 

railtimeslive
Tourist
11 0 10

Thanks so much!! 

Is there a way to move it up on desktop view only? 

Thanks again

Mustafa_Ali
Trailblazer
455 47 85
<style>
@media screen and (min-width: 768px) {
a.btn.pill.alt.animation.bottom-to-top {
    margin-bottom: 5rem !important;
 }
}
</style>

Mustafa_Ali_0-1748263424859.png

 

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