How to Add Afterpay Icon to Shopify Footer

Published on Jun 23, 2024

By Michael Chen

#Shopify#E-commerce#Payment Options
Person in Black Long Sleeve Shirt Holding Black Smartphone

Are you looking to add the Afterpay icon to your Shopify store’s footer? This guide will walk you through the process step-by-step, ensuring that your customers are aware of this popular payment option. We’ll cover everything from editing your theme’s code to customizing the icon’s appearance.

Understanding the Importance of Payment Icons

Why Display Payment Icons?

Payment icons in your store’s footer serve as a quick visual reference for customers, showcasing the various payment methods you accept. This transparency can boost customer confidence and potentially increase conversions.

The Rise of Afterpay

Afterpay has become increasingly popular among online shoppers, offering a “buy now, pay later” option. Adding the Afterpay icon to your footer can attract customers who prefer this payment method.

Building Trust Through Transparency

By displaying all available payment options, including Afterpay, you’re being transparent about your store’s offerings, which can help build trust with potential customers.

Adding the Afterpay Icon to Your Shopify Footer

Accessing Your Theme’s Code

To begin, you’ll need to access your theme’s code:

  1. Log in to your Shopify admin panel
  2. Navigate to Online Store > Themes
  3. Find your current theme and click “Actions” > “Edit code”

Locating the Footer Liquid File

In the theme editor, look for the footer.liquid file. This file contains the code for your store’s footer section.

Modifying the Payment Icons Code

The most effective method to add the Afterpay icon is by modifying the existing payment icons code. Look for a section that looks similar to this:

{%- if section.settings.show_payment_icons -%}
  {%- unless shop.enabled_payment_types == empty -%}
    <span class="visually-hidden">{{ 'general.payment.method' | t }}</span>
    <ul class="payment-icons list--inline site-footer__icon-list">
      {%- for type in shop.enabled_payment_types -%}
        <li class="payment-icon">
          {{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
        </li>
      {%- endfor -%}
    </ul>
  {%- endunless -%}
{%- endif -%}

Adding the Afterpay Icon

To add the Afterpay icon, insert the following code immediately after the {%- endfor -%} tag:

<li class="payment-icon">
  <img src="https://cdn.shopify.com/s/files/1/1693/6097/t/136/assets/icon-afterpay.svg?v=4891203826450230660" alt="afterpay">
</li>

This code adds a new list item with the Afterpay icon image.

Customizing the Afterpay Icon

Adjusting Icon Size

If the Afterpay icon appears too small or large compared to other payment icons, you can adjust its size using CSS. Add the following code to your theme’s CSS file (usually theme.scss.liquid):

#shopify-section-footer > footer > div:nth-child(3) > div > div.grid__item.small--hide.one-half.site-footer-item-center-vertically > div > ul > li:nth-child(6) > img {
  width: 100px;
  height: 70px;
}

Adjust the width and height values as needed to match your other icons.

Aligning the Icon

To ensure the Afterpay icon aligns properly with other payment icons, you may need to adjust its positioning. This can typically be done by modifying the vertical-align or margin properties in the CSS.

Optimizing Icon Quality

If your Afterpay icon appears blurry, consider using a higher quality image file. SVG format is preferred for crisp rendering at any size.

Troubleshooting Common Issues

Icon Not Displaying

If the Afterpay icon doesn’t appear after adding the code, double-check that:

  1. The image URL is correct
  2. The image file exists in your theme’s assets
  3. There are no syntax errors in your liquid code

Inconsistent Styling

If the Afterpay icon looks out of place compared to other payment icons, you may need to adjust its CSS properties to match the existing style. Inspect the other payment icons’ CSS and apply similar styling to the Afterpay icon.

Theme Compatibility

Some Shopify themes may handle payment icons differently. If the provided method doesn’t work for your theme, you may need to consult your theme’s documentation or contact Shopify support for theme-specific guidance.

Best Practices for Footer Payment Icons

Keep It Clean and Organized

Avoid cluttering your footer with too many payment icons. Stick to the most popular and relevant options for your target market.

Ensure Mobile Responsiveness

Test your footer on various devices to ensure the payment icons, including Afterpay, display correctly on mobile screens.

Regular Updates

As you add or remove payment methods from your store, remember to update your footer icons accordingly to maintain accuracy.

By following this guide, you should now be able to successfully add the Afterpay icon to your Shopify store’s footer. This small addition can make a big difference in communicating payment options to your customers and potentially increasing conversions. Remember to test your changes thoroughly and make any necessary adjustments to ensure a seamless integration with your store’s design.

Take Our Quick Quiz:

Which primary product image do you think has the highest conversion rate?