Skip to main content

Posts

Showing posts with the label Swiper.js

How to Add a Social Proof Block in Shopify Product Page (Dawn Theme)

 Adding social proof to your product pages can significantly increase trust and conversion rates. In this tutorial, we'll show you how to add a stylish Verified Testimonials block to your Shopify store using the Dawn theme . This block displays user avatars, names, and a verified icon—all customizable from the theme editor. ✅ Step 1: Open the main-product.liquid file Go to your Shopify Admin. Navigate to: Online Store → Themes → Edit code . Open the file: sections/main-product.liquid . Now add this code exactly as I’ve shown in the video — and yes, make sure to test it on a duplicate theme first! Full Code {%- when 'verified-testimonials' -%} <style> .verified-testimonials-container-{{block.id}} .verified-testimonials-user-icon-img-class { width: {{block.settings.verified_use...

How to Create Custom Announcement Bar with Slider in Shopify.

In this blog post, we'll learn how to create an announcement bar using the Swiper.js library in Shopify with custom coding . The announcement bar is a simple but effective way to display important messages or announcements on your website. With Swiper.js, we can easily create a dynamic and interactive announcement bar with customizable settings. Prerequisites Before we begin, make sure you have included the Swiper.js library in your project. You can do this by adding the following code to the <head> section of your HTML file: <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" /> <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script> HTML Structure To create the announcement bar, we'll need to define a container element and a set of messages or announcements. Here's the HTML structure for the announcement bar: <div id="announcement-bar" class="swiper-container zwk...