Shopify Update Glitches: How to Fix Overlapping Trust Badges with a Simple CSS Snippet

Hey there, fellow store owners! Ever hit that "Update Theme" button on Shopify and then immediately spot something... a little off? It’s a common scenario, and it can be frustrating when perfectly good elements suddenly decide to play hide-and-seek or, worse, overlap each other. I recently saw a great example of this in the Shopify Community forums, and it’s a classic case of how a small CSS tweak can save the day. Let’s dive into a common layout glitch and how the community helped solve it.

The Case of the Overlapping Trust Badge

Our story starts with Backdraft86, a store owner from JP's Horror, who posted in the forums about a sticky situation. After a recent theme update, their crucial trust badge—you know, those little icons that build customer confidence by showing secure payments and trusted services—was overlapping the "More Payment Options" section on their product pages. Talk about a conversion killer!

Backdraft86 shared a snippet of their code and a screenshot, which is always super helpful when troubleshooting. Here's what they were seeing:

    {{ form | payment_terms }}

  
trust badge

And here’s the visual evidence they provided:

image

As you can see, the trust badge was clearly encroaching on the payment options, making both elements harder to read and use. This kind of visual bug, while seemingly minor, can really impact user experience and trust, especially at the critical checkout stage.

Community to the Rescue: A Simple CSS Solution

When these layout issues crop up, it’s often a sign that a theme update has tweaked some underlying CSS, causing elements to render differently than before. While PaulNewton offered general customization and repair services (which is always an option for more complex issues), it was Dan-From-Ryviu who came through with a precise, actionable fix.

Dan asked for the store link to see the problem live, and once provided, he quickly identified the culprit and offered a small snippet of CSS code. This is the beauty of a vibrant community – often, someone has seen your exact problem before!

Here’s the code Dan provided:

.purchase-details__buttons.purchase-details__spb--true .shopify-payment-button {
    height: auto;
}
.purchase-details__buttons.purchase-details__spb--true .add_to_cart {
    height: 44px;
}

How to Apply This Fix to Your Shopify Store

If you're facing a similar overlapping issue, especially with trust badges or payment buttons after a theme update, here’s how you can implement this CSS fix:

  1. Log in to your Shopify Admin: Go to your store's backend.
  2. Navigate to Themes: In the left sidebar, click on "Online Store" > "Themes".
  3. Edit Your Live Theme: Find your current, published theme. Click on "Actions" > "Edit code".
  4. Find Your Custom CSS File: Look for a file named something like theme.scss.liquid, base.css, or custom.css under the "Assets" folder. Some themes also have a dedicated "Custom CSS" section directly in the Theme Editor (Customize). If your theme has a "Custom CSS" box in the "Theme settings", that's often the easiest place to add it.
  5. Paste the Code: Scroll to the very bottom of the selected CSS file or the Custom CSS box and paste the code snippet provided by Dan-From-Ryviu:
    .purchase-details__buttons.purchase-details__spb--true .shopify-payment-button {
        height: auto;
    }
    .purchase-details__buttons.purchase-details__spb--true .add_to_cart {
        height: 44px;
    }
    
  6. Save Your Changes: Click the "Save" button in the top right corner.
  7. Check Your Product Pages: Head back to your online store and refresh a product page where you saw the overlap. The elements should now be properly spaced!

Backdraft86 confirmed this code was "amazing" and fixed their problem, which is always fantastic to hear!

Why This CSS Works

Let's break down what this CSS does. The code targets specific elements related to your purchase details and payment buttons:

  • .purchase-details__buttons.purchase-details__spb--true .shopify-payment-button { height: auto; }: This line targets the Shopify payment buttons (like Shop Pay, PayPal, etc.) and sets their height to auto. This means the button will take up as much height as its content requires, preventing it from being unnaturally constrained or pushing other elements away.
  • .purchase-details__buttons.purchase-details__spb--true .add_to_cart { height: 44px; }: This line specifically sets the "Add to Cart" button's height to a fixed 44px. Sometimes, after an update, this button might lose its defined height, causing layout shifts. Giving it a standard height ensures consistency.

By adjusting these heights, we're essentially telling the browser how much space to allocate for these critical elements, resolving the conflict that led to the overlapping trust badge.

Beyond the Fix: Lessons Learned

This little episode from the Shopify Community highlights a few important lessons for all of us:

  • Test After Updates: Always, always test your key pages (especially product and checkout pages) after a theme update or app installation. Visual glitches can sneak in.
  • The Power of Custom CSS: Don't be afraid to use your theme's custom CSS section for minor tweaks. It's a powerful tool for fine-tuning your store's appearance without directly editing core theme files (which can make future updates harder).
  • Lean on the Community: The Shopify Community forums are a goldmine! Chances are, if you're experiencing an issue, someone else has too, and a helpful expert might just have the exact solution.

So, next time you see something misbehaving on your store, remember Backdraft86's experience. A quick post in the community, a little digging, and a simple CSS snippet might be all it takes to get things looking perfect again. Happy selling!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases