For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
GuidesAPI Reference
GuidesAPI Reference
  • Welcome
    • Getting Started
    • Business Hub
    • Afterpay Migration
  • Platforms
    • Platforms Quickstart
    • Adobe Commerce (Magento)
    • Adyen
    • BigCommerce
    • Ecwid
    • PrestaShop
    • Salesforce Commerce Cloud
    • Shopify
      • Add Afterpay at Checkout
      • Add Cash App Pay at Checkout
      • Afterpay On-Site Messaging App
      • Manually Add Afterpay Site Messaging to Theme
      • Shopify Manual Capture
      • Shopify Order Reconciliation
      • Shopify Test Mode
      • Add an Afterpay Banner to Shopify
      • FAQ
    • Stripe
    • Wix
    • WooCommerce
  • Afterpay Messaging
    • Getting Started
    • Placement
    • Implementation
    • Migration
    • Older Messaging Information and Links
    • Launch Afterpay Info Modal Anywhere
  • API Development
    • API Quickstart
    • Test Environments
    • Certification
    • Disputes
    • Webhook Signature Generation
  • SDK
    • SDK Migration Guide
    • iOS SDK
    • Android SDK
    • React Native SDK
  • Marketing
    • Shop Directory
    • Brand Assets
LogoLogo
On this page
  • Steps to Add the Banner
  • Add the Liquid file
  • Editing the Theme Liquid file
  • Changing the Banner Color
  • Brand Assets
PlatformsShopify

Add an Afterpay Banner to Shopify

Was this page helpful?
Previous

FAQ

Next
Built with

Banners display Afterpay information at the top of your Shopify page, as shown in the images below.

To add an Afterpay banner, you must edit your store’s code. Before proceeding, ensure that:

  • The Afterpay US payment app is already installed and running on your online store

  • You have chosen a banner that aligns with the guidelines

Recommendation
You are changing your online store’s code, so be careful. We recommend you create a duplicate page and only publish it once you have verified the changes.

Steps to Add the Banner

  1. Click Actions and select Edit Code from the drop-down menu.

  2. Scroll down to Sections and click Add a new section.

  3. In the Create a new section called field enter cash-app-afterpay-banner. The cash-app-afterpay-banner.liquid tab appears.

  4. Delete the code that populates the cash-app-afterpay-banner.liquid tab.

Add the Liquid file

  1. Click the link to the banner code snippet.

  2. Click the Copy to Clipboard button.

  3. Paste the banner code snippet into the cash-app-afterpay-banner.liquid tab.

  4. Click Save.

Editing the Theme Liquid file

  1. Open the theme-liquid file.

  2. Locate the line {% sections 'header-group' %} or {% section 'header' %}.

  3. Add {% section 'cash-app-afterpay-banner' %} above this line. In the example below, it is added to line 4:

    <div class = "black-body"></div>
    {% section 'popup' %}
    {% section 'announcement-bar' %}
    {% section 'cash-app-afterpay-banner' %}
    {% section 'header' %}
    <div id="PageContainer" class="is-moved-by-drawer">
  4. Click Save.

To verify the changes, click Preview and check for the banners appearance at the top of the page.

The images below illustrate a white, black, and green banner:

white-banner-new.png


black-banner-new.png


green-banner-new.png

Changing the Banner Color

To change the banner color:

  1. Login to your Shopify Admin and navigate to your Theme Settings page: Go to Online Store> Themes.

  2. Click Customize to change the theme with the Afterpay Banner.

    publish-customize.png

  3. Click Afterpay Banner.

    home-page.png

  4. Click Banner color.

  5. Select Black, White, or Green.

    shopify-banner-for-caap.png

  6. Click Save.

Brand Assets

For more examples and information on brand assets, including banners, see the Brand Assets section of this guide.