Shopify themes, liquid, logos, and UX
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:
And also I wanted to reduce size of this button because now its size like that:
And last thing I wanted to change the colors on background #5F606A and title color is #FFFFFF
I will apreciate every help
Solved! Go to the solution
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>
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
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>
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
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
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:
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 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024