How do i move the 'shop now' button down on my image for mobile only?

Solved

How do i move the 'shop now' button down on my image for mobile only?

astilbe
Tourist
3 0 1

Hello, is anyone able to help me with this issue please? My 'shop now' button on mobile stays in the centre of the image, however, i want it to be at the bottom so it does not cover the text on the image. I saw a code from another question but it did not work. 

Thank you for your help

 

 

 

 

IMG_2976.jpg

Accepted Solution (1)

DaisyVo
Shopify Partner
3688 403 489

This is an accepted solution.

Hi @astilbe ,

You can follow the steps here:

 

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

 

Here is the code for step 3:

@media screen and (max-width: 768px){
.banner__content {
    align-items: end !important;
}
}

Here is the result:

DaisyVo_0-1736899071964.png

 

Please let me know if it works!

Best,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 7 (7)

Made4uo-Ribe
Shopify Partner
9870 2351 2947

Hi @astilbe 

PLease, share your store URL. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
astilbe
Tourist
3 0 1

Hello, it is 

 

https://astilbeandrose.co.uk/

 

thank you

Made4uo-Ribe
Shopify Partner
9870 2351 2947

Thanks for te info, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
.banner__box.content-container {
    align-self: flex-end !important;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1736894083473.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

 

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

EstherBui
Excursionist
275 39 41

Hi @astilbe 

 

You can follow the instruction here :

1. Go to Shopify > Online store > theme > customize

2. Click to Settings > Custom CSS > Paste this code to the section and save. https://prnt.sc/Rl66N9K_Bjvs

 

 

 

@media (max-width: 749px) {
    #shopify-section-template--18519066018035__image_banner .banner__box {
        align-self: flex-end;
    }
}

 

 

 

 

Result: 

EstherBui_0-1736897426509.png

 

 If you have any question, feel free to ask me. 

 

Esther

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

DaisyVo
Shopify Partner
3688 403 489

This is an accepted solution.

Hi @astilbe ,

You can follow the steps here:

 

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

 

Here is the code for step 3:

@media screen and (max-width: 768px){
.banner__content {
    align-items: end !important;
}
}

Here is the result:

DaisyVo_0-1736899071964.png

 

Please let me know if it works!

Best,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
astilbe
Tourist
3 0 1

Thank you so much, this one worked 

GTLOfficial
Shopify Partner
769 160 169

Hello @astilbe 
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.

@media screen and (max-width: 768px) {
.button.button--primary {
top: 18rem !important;
}

result
143.png

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh