Re: Add button to footer, Sense Theme.

Solved

Add button to footer, Sense Theme.

talsworld
Excursionist
38 1 10

Hi! I cannot seem to figure out the right code to add a button to the second column in my footer under the text.

The site is coldpow.com. I would rather insert a nice button there then have to link text. Thank you!!!

 

Untitled.jpg

Accepted Solution (1)

Hardik2903
Pathfinder
95 8 12

This is an accepted solution.

@talsworld 

Please go to
1) Online store
2) Themes -> Edit theme
3) Sections
4) footer.liquid

First, Please try to find "{%- when 'text' -%}" and place below code. I have also attached a screenshot for the reference.

{% if block.settings.button_url and block.settings.button_label %}
  <a role="link" class="button button--primary" href="{{ block.settings.button_url }}">{{ block.settings.button_label }}</a>
{% endif %}

Screenshot 2024-09-06 115226.png


Second, Please find "type": "text" in the Schema section and place the below code. I have also attached a screenshot. Please do not forgot to add "," after the closing curly bracket of "type": "richtext"

        {
          "type": "text",
          "id": "button_label",
          "default": "Shop Now",
          "label": "Button Label"
        },
        {
          "type": "url",
          "id": "button_url",
          "label": "Button URL"
        }

Screenshot 2024-09-06 114933.png

 

Now, Go to theme settings -> Footer -> Text -> Here, when you will add label and url, this button will be appeared.

If it was helpful, then please like and accept it as a solution.
Thank you



View solution in original post

Replies 6 (6)

prakashVt
Shopify Partner
226 20 34

Hello @talsworld 

What kind of button design  are you looking for? Any reference?

I tried this 

prakashVt_0-1725604106599.png

 

- Free Customer Dashboard apps that enhanced your customers' experience - VTN Customer Dashboard
- Feel free to Contact for more help (Free Support): [email protected]

Hardik2903
Pathfinder
95 8 12

This is an accepted solution.

@talsworld 

Please go to
1) Online store
2) Themes -> Edit theme
3) Sections
4) footer.liquid

First, Please try to find "{%- when 'text' -%}" and place below code. I have also attached a screenshot for the reference.

{% if block.settings.button_url and block.settings.button_label %}
  <a role="link" class="button button--primary" href="{{ block.settings.button_url }}">{{ block.settings.button_label }}</a>
{% endif %}

Screenshot 2024-09-06 115226.png


Second, Please find "type": "text" in the Schema section and place the below code. I have also attached a screenshot. Please do not forgot to add "," after the closing curly bracket of "type": "richtext"

        {
          "type": "text",
          "id": "button_label",
          "default": "Shop Now",
          "label": "Button Label"
        },
        {
          "type": "url",
          "id": "button_url",
          "label": "Button URL"
        }

Screenshot 2024-09-06 114933.png

 

Now, Go to theme settings -> Footer -> Text -> Here, when you will add label and url, this button will be appeared.

If it was helpful, then please like and accept it as a solution.
Thank you



talsworld
Excursionist
38 1 10

Thank you. This was truly the best way to add a button as it matched the other buttons in the theme. I can't thank you enough. Much much appreciated.

Sangeetanahar
Explorer
541 36 69

hello @talsworld 

Go to online store ----> themes ----> actions ----> edit code ---->assets ---->base.css

add the code bottom of the file

.footer-block__details-content.rte h3 {
    border: 2px solid white;
    padding: 16px;
    border-radius: 28px;
}
.footer-block__details-content.rte h3 a {
text-decoration: none;
   
}

 

result

Feedback-–-Coldpow-.png

 

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:sangeetarahuldhiman -Whatsapp: +917009811712
Checkout Some Free Sections Here

topnewyork
Globetrotter
633 114 134

Hi @talsworld , 

 

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

<Style>
a[href="https://www.coldpow.com/pages/feedback"] {
    padding: 10px;
    border: 1px solid white;
    border-radius: 30px;
    text-decoration: none;
    background-color: white;
    color: black !important;
    cursor: pointer;
}
</style>

topnewyork_0-1725605489817.png

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel

Tech_Coding
Shopify Partner
301 76 67

Hello @talsworld 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  .footer-block__details-content.rte h3 a {
      text-decoration: none !important;
      color: #000 !important;

    }

   .footer-block__details-content.rte h3 {
      background: #fff !important;
      padding: 10px;
      text-transform: capitalize;
      font-weight: 700;
      text-align: center;
      max-width: 24rem;
   }
</style>

Tech_Coding_0-1725606351328.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.