Published on

How to Add Payment Icons to Your Shopify Footer A Personal Journey with the Reformation Theme

Authors
  • avatar
    Name
    Entaice Braintrust
    Twitter

How to Add Payment Icons to Your Shopify Footer: A Personal Journey with the Reformation Theme

I remember the evening vividly. It was one of those peaceful nights where the world outside seemed quiet, as if holding its breath for something delightful. My partner Tim and I were tucked away in our cozy home office, with cups of steaming tea in hand and an endless playlist of ambient tunes—mostly synthwave—a soundtrack to our coding adventures. We were knee-deep in a Shopify project, tweaking the footer section of an online store using the Reformation Theme. Have you ever had that feeling where you know it’s just a small aesthetic tweak you need, but it feels monumental? That's where we were. The missing piece of our masterpiece was the payment icons. They had to be just right so customers would feel welcome and assured.

Adding those little icons feels like setting the finishing touches on a painting—it’s the frame that defines the art. Let me take you through our journey in crafting a balanced, beautiful Shopify footer, and maybe we'll have some fun learning together. Boil the kettle, grab a biscuit or two, and settle in.

Getting Started: Preparation is Key

Ah, the beginning. Much like prepping a batch of cookies, we have to gather our ingredients. First things first: access your Shopify admin and then head over to your theme settings. It's imperative, as pioneers in the digital realm, to create a backup of your current theme. So, pop into "Online Store" and then "Actions" next to your theme, then "Duplicate." Trust me, having a safety net is just as important as remembering the sugar. The backup ensures that if anything goes haywire—though it never has on our watch—you can revert without a hitch.

The Art of Code with a Dash of Courage

Time for some code. Breathe in that virtual air; it’s time to dive. Go to "Actions" -> "Edit code". You'll have your canvas of theme files ready to explore—do not fear, intrepid creator. Navigate into footer.liquid under the "Sections" folder. It's here where the magic begans. Think of this file as the parchment on which we'll etch our visual call to payment action.

Paste the following with care, adding your chosen icons beneath the existing social links or wherever the heart desires:

<div class="payment-icons">
  <img src="{{ 'visa.svg' | asset_url }}" alt="Visa" />
  <img src="{{ 'master.svg' | asset_url }}" alt="Mastercard" />
  <img src="{{ 'american_express.svg' | asset_url }}" alt="American Express" />
  <img src="{{ 'jcb.svg' | asset_url }}" alt="JCB" />
  <img src="{{ 'unionpay.svg' | asset_url }}" alt="UnionPay" />
  <img src="{{ 'maestro.svg' | asset_url }}" alt="Maestro" />
  <img src="{{ 'visa-electron.svg' | asset_url }}" alt="Visa Electron" />
  <img src="{{ 'discover.svg' | asset_url }}" alt="Discover" />
</div>

Here’s a tip: make sure you’ve uploaded these payment icon images into your Shopify store. Head over to the "Settings" > "Files" section to upload—it's like adding chocolate chips, but for your files.

The Dance of Styles: CSS Enhancements

Our beloved Tim, ever the perfectionist, had a knack for CSS. He would always say that styling is where your website learns to tango. Head—not to the dance floor, but rather—to the theme.scss.liquid file within the "Assets" folder. Add this bit of code to finesse the appearance of your payment icons. We need them to stand elegantly in the rhythm of your footer’s design:

.payment-icons img {
  max-height: 30px;
  margin: 0 10px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.payment-icons img:hover {
  filter: grayscale(0%);
}

When paired with lovely CSS effects, these icons will gleam without overshadowing the main act. A hover effect—you might ask—why? Because it adds that small but significant bit of interactivity, charming like a waltz in a frozen ballroom.

The Grand Reveal

Finally, it's time to take a step back and admire our handiwork. Save the changes, and let's rendezvous at your store's front. Refresh, sit back, and behold. Your footer now stands proudly, adorned with payment icons that promise shoppers the world of convenience and security. When you've put your heart into it, it shows. Honestly, after seeing how polished and inviting everything looked, we decided the evening befit a little celebration. Tim and I clinked our mugs—because there’s magic in the mundane—and sighed deeply, content with yet another shared success.

So there you have it. With a sprinkling of code and a dollop of creativity, we've added something special to your Shopify store's footer. Go forth and create, dear friends. Whether your store sells delicious fruits or whimsical whatnots, may your digital space stand as a beacon of trust and beauty. Until our paths cross again—happy coding!