Shopify themes, liquid, logos, and UX
Hello,
I am using Dawn theme for my store www.florabymillie.com. With the multi column section I would like to have a CTA button for each column rather than just "Shop Now" text. Can anybody help please ?
Solved! Go to the solution
This is an accepted solution.
Hi @Millie03
Please add the below style at the end of your base.css file
a.link.animate-arrow {
display: inline-flex;
justify-content: center;
align-items: center;
border: 0;
padding: 0 3rem;
cursor: pointer;
font: inherit;
font-size: 1.5rem;
text-decoration: none;
color: rgb(var(--color-button-text));
transition: box-shadow var(--duration-short) ease;
-webkit-appearance: none;
appearance: none;
background-color: rgba(var(--color-button),var(--alpha-button-background));
min-width: calc(12rem + var(--buttons-border-width) * 2);
min-height: calc(4.5rem + var(--buttons-border-width) * 2);
--shadow-horizontal-offset: var(--buttons-shadow-horizontal-offset);
--shadow-vertical-offset: var(--buttons-shadow-vertical-offset);
--shadow-blur-radius: var(--buttons-shadow-blur-radius);
--shadow-opacity: var(--buttons-shadow-opacity);
--border-offset: var(--buttons-border-offset);
--border-opacity: calc(1 - var(--buttons-border-opacity));
border-radius: var(--buttons-radius-outset);
position: relative;
font-size: 1.5rem;
letter-spacing: .1rem;
line-height: calc(1 + .2 / var(--font-body-scale));
}
Here is the output after you add the style
This is an accepted solution.
Hi @Millie03
Please add the below style at the end of your base.css file
a.link.animate-arrow {
display: inline-flex;
justify-content: center;
align-items: center;
border: 0;
padding: 0 3rem;
cursor: pointer;
font: inherit;
font-size: 1.5rem;
text-decoration: none;
color: rgb(var(--color-button-text));
transition: box-shadow var(--duration-short) ease;
-webkit-appearance: none;
appearance: none;
background-color: rgba(var(--color-button),var(--alpha-button-background));
min-width: calc(12rem + var(--buttons-border-width) * 2);
min-height: calc(4.5rem + var(--buttons-border-width) * 2);
--shadow-horizontal-offset: var(--buttons-shadow-horizontal-offset);
--shadow-vertical-offset: var(--buttons-shadow-vertical-offset);
--shadow-blur-radius: var(--buttons-shadow-blur-radius);
--shadow-opacity: var(--buttons-shadow-opacity);
--border-offset: var(--buttons-border-offset);
--border-opacity: calc(1 - var(--buttons-border-opacity));
border-radius: var(--buttons-radius-outset);
position: relative;
font-size: 1.5rem;
letter-spacing: .1rem;
line-height: calc(1 + .2 / var(--font-body-scale));
}
Here is the output after you add the style
Thank you very much.
Thanks this works! Any idea how to take the arrow off the button?
This worked great; do you know how I can remove the arrow and make it the outlined version instead of the solid button version? I want it white with black boarder.
Thank you!
Hi @Millie03 ,
You can add the below css code in custom.css
Online Store > Themes > Actions > Edit Code > Custom.css
.link animate-arrow {
background-color: #000;
color: #fff;
padding: 10px 30px;
}
Hello @Millie03,
Follow the below steps to add a custom CTA button in the dawn theme.
<style>
.classname {
min-width: 180px;
min-height: 45px;
background: #000;
color: #fff;
border: 1px solid #000;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
}
<style>
This will change the shop now link into a CTA button.
Hope it was helpful. Please let us know if you need more help on this.
Regards,
CedCommerce
@Cedcommerce I am taking you back about 9 months 🙂
I am trying to implement your solution, but I am stuck. I am not a coder, I can copy / paste and follow detailed instructions. I have added the custom class and the CSS code to the liquid file.
I have the feeling there is one more step, but I don't know how. You mentioned:
Can you help me out? Thanks.
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024