Re: How to adjust size of second button, position and color in banner

Solved

How to adjust size of second button, position and color in banner

Aleksander22
Explorer
164 0 57

Hello,

I got a question. I was wondering how can I adjust size, position and colors of second button without changing firts button. I want that button to be next to first button. Like the first button is on left side but second on right like here:

Aleksander22_0-1721552888064.png

And also I wanted to reduce size of this button because now its size like that:

Aleksander22_1-1721552961171.png

And last thing I wanted to change the colors on background #5F606A and title color is #FFFFFF

I will apreciate every help

Accepted Solution (1)

theycallmemakka
Shopify Partner
1662 396 418

This is an accepted solution.

Hi @Aleksander22 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </head>

<style>
@media only screen and (min-width: 600px) {
#Banner-template--21931130388814__image_banner_k8FQdd .banner__buttons.banner__buttons--multiple {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

#Banner-template--21931130388814__image_banner_k8FQdd  a.button.button--primary {
    width: fit-content;
    min-width: fit-content;
    max-width: fit-content;
}

}
#Banner-template--21931130388814__image_banner_k8FQdd  a.button.button--primary:last-of-type {
    background-color: #000;;
    color: #fff;
}
</style>

theycallmemakka_0-1721553897855.png

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: [email protected]

View solution in original post

Replies 3 (3)

theycallmemakka
Shopify Partner
1662 396 418

This is an accepted solution.

Hi @Aleksander22 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </head>

<style>
@media only screen and (min-width: 600px) {
#Banner-template--21931130388814__image_banner_k8FQdd .banner__buttons.banner__buttons--multiple {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

#Banner-template--21931130388814__image_banner_k8FQdd  a.button.button--primary {
    width: fit-content;
    min-width: fit-content;
    max-width: fit-content;
}

}
#Banner-template--21931130388814__image_banner_k8FQdd  a.button.button--primary:last-of-type {
    background-color: #000;;
    color: #fff;
}
</style>

theycallmemakka_0-1721553897855.png

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: [email protected]

Aleksander22
Explorer
164 0 57

Thanks for your help thats exactly what I wanted appreciate that

And i got a question where can I change the background of second button which line is it

BSSCommerce-HDL
Shopify Partner
2303 847 1061

Hi @Aleksander22

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

 

 

<style>
.banner__buttons.banner__buttons--multiple {
    display: flex !important;
}
.banner__buttons.banner__buttons--multiple a.button.button--primary {
    min-width: auto !important;
    width: calc(50% - 10px) !important;	
}

.banner__buttons.banner__buttons--multiple a.button.button--primary:first-child {
    order: 2;
    background-color: #5F606A !important;
    color: #ffff !important;
}
</style>

 

 

Here is result: 

BSSCommerceHDL_1-1721554354140.png

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now