Change a link label to button label in multicolumn section- dawn theme.

Solved

Change a link label to button label in multicolumn section- dawn theme.

dmrashid40
Tourist
10 0 2

Hi, 

I have no idea how to change the link label to a button label - within multicolunm.

I have asked the support center, and it is very difficult to understand. Here is the feedback i get below:

I get stuck at the section below in purple font. I can't find that and i have no idea what i am changing or simply adding.  What does the before and after look like (code wise)

Look forward to your feedback

 

 

  1. From your Shopify admin, go to 

    Online Store

     > 

    Themes

    .

  2. Find the theme you want to edit, click the 

    ...

     button to open the actions menu, and then click 

    Edit code

    .

  3. In the 

    Sections

     directory, find the file that contains your multi-column section. This might be named something like 

    multi-column.liquid

    .

  4. Locate the HTML code for the link you want to change into a button.

  5. Add the class attribute 

    class=\"btn\"

     to the link tag. For example, change 

    <a href=\"your-link\">Link Label</a>

     to 

    <a href=\"your-link\" class=\"btn\">Link Label</a>

    .

  6. Click 

    Save

     to apply your changes.

This will apply the primary button styling to your link, making it look like a button. If you want to use secondary button styling, you can use class=\"btn--secondary\" instead.

Accepted Solution (1)

Cristina_92
Shopify Partner
124 10 35

This is an accepted solution.

Hello @dmrashid40 !

 

I've followed the instructions you posted and here is the result:

result.png

 

Before replacing - line 130:

 

Screenshot 2025-03-19 110038.png

 

I have copied the class of my primary button and inserted it in the line 130.

 

Group 71.png

 

Give it a try and let me know if it worked for you.

 

Boxi: Bundle Builder & BYOB  - increase sales and AOV by letting your customers build personalized product boxes.
ISBNExpress: Books Importer  - import book details by ISBN into your bookstore with a single click.
Shopify Guides for Merchants

View solution in original post

Replies 16 (16)

marrychandy
Tourist
5 0 2

,I'd be happy to help you with that. It seems like the support center's instructions are a bit confusing.

 

To change the link label to a button label in the multicolumn section, you'll need to add a class attribute to the link tag. I can provide you with a step-by-step guide or even do it for you if you'd like.

 

Would you prefer a detailed guide or would you like me to take care of it?

dmrashid40
Tourist
10 0 2

a detailed guide would be amazing.  I think i am stuck on where to add the class attribute. What line number is it? what do i need to look for exactly?

I look forward your guide.

Thanks,

Arif_Shopidevs
Shopify Partner
521 44 93

Hello,Can you  share your site url and the page where you want we can do some other way to achieve this. Using CSS .

Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.

dmrashid40
Tourist
10 0 2

This is my site url and the circled link labels below are what i want to change as buttons

 

https://tickoffticks.com/

Screenshot 2025-03-19 at 5.43.29 AM.png

Arif_Shopidevs
Shopify Partner
521 44 93

The site is password protected

Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.

dmrashid40
Tourist
10 0 2

Cheers2178! will get you in.  

Arif_Shopidevs
Shopify Partner
521 44 93

Hello,
If you add this css in your multicolumn CSS area from storefront, it will give a  border radius with background .

In this way it is easy for you to modify this. Other wise modify the section will difficult for you.

.multicolumn-card__info .link {
    background-color: #e3e3e3;
    padding: 10px;
    border-radius: 10px;
}

Arif_Shopidevs_0-1742390671148.png


Let us know anything else you need.

Thank you

Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.

Cristina_92
Shopify Partner
124 10 35

This is an accepted solution.

Hello @dmrashid40 !

 

I've followed the instructions you posted and here is the result:

result.png

 

Before replacing - line 130:

 

Screenshot 2025-03-19 110038.png

 

I have copied the class of my primary button and inserted it in the line 130.

 

Group 71.png

 

Give it a try and let me know if it worked for you.

 

Boxi: Bundle Builder & BYOB  - increase sales and AOV by letting your customers build personalized product boxes.
ISBNExpress: Books Importer  - import book details by ISBN into your bookstore with a single click.
Shopify Guides for Merchants
dmrashid40
Tourist
10 0 2

That worked perfectly!  Thank you for making it very easy.

 

Cristina_92
Shopify Partner
124 10 35

Great! Now I also know how to make it 😀.

Boxi: Bundle Builder & BYOB  - increase sales and AOV by letting your customers build personalized product boxes.
ISBNExpress: Books Importer  - import book details by ISBN into your bookstore with a single click.
Shopify Guides for Merchants
dmrashid40
Tourist
10 0 2

another question....do you know how to remove the search icon in the header of dawn theme.  I think i have to go into ccs again.  

 

Cristina_92
Shopify Partner
124 10 35

Hi @dmrashid40 !

 

If I understand right you want to remove search icon (search in general):

Group 71 (1).png

 

If so, then please go to Online Store and click on Customize.

Then click on Header on the left and scroll down to Custom CSS:

Group 72.png

 

Paste this code (it can be different in your store, I also use Dawn): 

.header__icon--search {
  display: none;
}

Save your changes. It should disappear, and check it on your store.

Boxi: Bundle Builder & BYOB  - increase sales and AOV by letting your customers build personalized product boxes.
ISBNExpress: Books Importer  - import book details by ISBN into your bookstore with a single click.
Shopify Guides for Merchants
dmrashid40
Tourist
10 0 2

do i need to remove anything? Replace anything or just cut and paste?

thanks in advance

Cristina_92
Shopify Partner
124 10 35

Try to paste and Save. I don't think you need to replace anything.

Boxi: Bundle Builder & BYOB  - increase sales and AOV by letting your customers build personalized product boxes.
ISBNExpress: Books Importer  - import book details by ISBN into your bookstore with a single click.
Shopify Guides for Merchants
dmrashid40
Tourist
10 0 2

Do i just add it to line 1.  Or do i need to find, a specific line to add it to?

I did add it on its own and it did not work.

Arif_Shopidevs
Shopify Partner
521 44 93
@media screen and (min-width: 990px) {
    .header:not(.header--top-center) *>.header__search, .header--top-center>.header__search {
 
        display: none!important;
    }
}

Insert the above css in this css box it will hide

Arif_Shopidevs_0-1742426935770.png

 

Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.