Re: Move image banner button

Solved

Move image banner button

Jferguson1
Explorer
80 3 6

Hi there,

 

Trying to move the image banner button down, but the adjustable code i have right now has reached its limit (anything over 450px has no effect on the placement). 

 

This is the code im working with:

 

<style>
.banner__box {
margin-top: 900px; 
}
</style>

 

here is what it looks like:

 

Screenshot 2024-03-19 at 16.24.34.png

And i want the button to sit under the content. 

 

Thank for in advance!

 

https://www.tryy.co.uk

password - help

 

many thanks!

 

 

Accepted Solutions (2)

Made4uo-Ribe
Shopify Partner
7609 1833 2245

This is an accepted solution.

Hi @Jferguson1 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

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:

And Save.

 

.banner__content.banner__content--middle-center.page-width.scroll-trigger.animate--slide-in {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

 

And save.

Result:

Made4uoRibe_0-1710866501732.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

ThePrimeWeb
Shopify Partner
2138 615 497

This is an accepted solution.

The size is being changed by the margin of 900px you added earlier. If you want to remove that, just increase the px value in the transform property.

 

<style>
.banner__box {
    transform: translateY(550px) !important;
}
</style>

 
Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!

View solution in original post

Replies 5 (5)

ThePrimeWeb
Shopify Partner
2138 615 497

Add on this

 

<style>
.banner__box {
    margin-top: 900px; 
    transform: translateY(165px) !important;
}
</style>

 
Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
Jferguson1
Explorer
80 3 6

 Hi - thanks for getting back to me.

 

The code has moved the button to the button of the screen, however it has interfered with the size of the banner image.

 

Before the code:

 

Screenshot 2024-03-19 at 16.43.00.png

 

After the code:

Screenshot 2024-03-19 at 16.43.13.png

 

Is there a way to keep the size of the banner image intact?

 

Many thanks, Joe

ThePrimeWeb
Shopify Partner
2138 615 497

This is an accepted solution.

The size is being changed by the margin of 900px you added earlier. If you want to remove that, just increase the px value in the transform property.

 

<style>
.banner__box {
    transform: translateY(550px) !important;
}
</style>

 
Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!

Made4uo-Ribe
Shopify Partner
7609 1833 2245

This is an accepted solution.

Hi @Jferguson1 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

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:

And Save.

 

.banner__content.banner__content--middle-center.page-width.scroll-trigger.animate--slide-in {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

 

And save.

Result:

Made4uoRibe_0-1710866501732.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Jferguson1
Explorer
80 3 6

lovely - thank you. and thanks for showing me some text hadnt been embedded.