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 😍
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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024