How to change a hyperlink into a button?

How to change a hyperlink into a button?

thenutterco
Visitor
1 0 2

Store URL: https://thenuttercompany.com/pages/store-locator

 

I have 3 hyperlinks on this page and the current HTML is as folllows:

 

<h3><strong>ONLINE STORES</strong></h3>
<p><a href="https://www.hktvmall.com/hktv/zh/main/THE-NUTTER-COMPANY-LIMITED/s/H7506001" title="The Nutter Company - HKTVmall" rel="noopener noreferrer" target="_blank">HKTVmall - hktvmall.com</a></p>
<p><a href="https://lifestyle.asiamiles.com/en/HK/c/brand_thenuttercompany" title="asia miles">Asia Miles - asiamiles.com</a></p>
<p><a href="https://hk.pinkoi.com/store/thenuttercompany/" title="The Nutter Company - Pinkoi" rel="noopener noreferrer" target="_blank">Pinkoi - hk.pinkoi.com</a></p>

 

How do I change the hyperlink into a button? And what are the options available in customising the button?

 

----

 

Separately, there is currently a large gap between the two sections, any idaa on reducing such gap? 

 

TIA!

Replies 2 (2)

Moeed
Shopify Partner
7375 1996 2437

Hey @thenutterco 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
div#shopify-section-template--16792876941482__main a {
    background: #4C311D !important;
    color: white !important;
    padding: 8px 20px;
    text-decoration: unset !important;
}
</style>

RESULT:

Moeed_0-1743148390588.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Made4uo-Ribe
Shopify Partner
10133 2403 3037

Hi @thenutterco 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
div#shopify-section-template--16792876941482__main .PageContent.Rte p {
   background: #676867;
   padding: 5px 10px;
   width: 15rem;
   border: 1px solid grey;
}

div#shopify-section-template--16792876941482__main .PageContent.Rte a {
    color: white;
   text-decoration: none;
}

div#shopify-section-template--16792876941482__main .PageContent.Rte {
   margin-bottom: 0;
}
  • And Save.
  • Result:
  • Made4uoRibe_0-1743161253805.png

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.