Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Multi Column CTA Button Dawn Theme

Solved

How to add a CTA button to each column in Dawn theme?

Millie03
Pathfinder
121 0 25

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 ?

multicolumn b.png

Accepted Solution (1)

SagarSukhanandi
Shopify Partner
279 58 71

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
Screenshot 2022-07-08 120418.png



If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on sagar.sukhanandi@gmail.com regarding any help

View solution in original post

Replies 7 (7)

SagarSukhanandi
Shopify Partner
279 58 71

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
Screenshot 2022-07-08 120418.png



If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on sagar.sukhanandi@gmail.com regarding any help
Millie03
Pathfinder
121 0 25

Thank you very much.

missjewellee
Excursionist
43 0 2

Thanks this works! Any idea how to take the arrow off the button?

ashpace
Visitor
1 0 0

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!

Tinytasks
Explorer
39 3 5

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;
}

 

Cedcommerce
Shopify Partner
718 76 114

Hello @Millie03

 

Follow the below steps to add a custom CTA button in the dawn theme.

  • Go to your Shopify Admin > Action Button > Edit code.
  • Search multicolumn.liquid file. (Refer to the below figure)
    Cedcommerce_8-1657596991295.png

     

  • Now add a custom class in the anchor tag.

Cedcommerce_9-1657596988595.png

 

 

  • Look for the custom_button or class for the button in that file. 
  • Add the below-provided CSS code in between style tags.
  • Refer to the below image.

<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>

 

 

 

 

Cedcommerce_10-1657596989582.png

 

This will change the shop now link into a CTA button.

Cedcommerce_11-1657596988564.png

 

 

 

Hope it was helpful. Please let us know if you need more help on this. 

 

Regards,

CedCommerce

CedCommerce || Shopify Expert
- Let us know if our reply is helpful for you. Like it.
- Was your question answered? Mark it as an accepted solution.
- For further discussion contact: Email ID- apps@cedcommerce.com
- Whatsapp:- Join Here
jeroenvandepol
Excursionist
31 0 3

@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:

  • Look for the custom_button or class for the button in that file. 

Can you help me out? Thanks.

 

Screenshot 2023-09-28 14.37.35.png

Screenshot 2023-09-28 14.44.25.png