Skip to main content

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 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

  1. Go to your Shopify Admin.

  2. Navigate to: Online Store → Themes → Edit code.

  3. Open the file:
    sections/main-product.liquid.

  4. 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_user_size}}px;
                    height: {{block.settings.verified_user_size}}px;
                    object-fit: cover;
                    border-radius: 50%;
                    border: 2px solid #fff;
                  }

                  .verified-testimonials-container-{{block.id}} .verified-testimonials-user-icon-img-class:nth-child(2) {
                    margin-inline-start: -6px;
                  }
                  .verified-testimonials-container-{{block.id}} .verified-testimonials-user-icon-img-class:nth-child(3) {
                    margin-inline-start: -6px;
                  }

                  .verified-testimonials-container-{{block.id}} {
                    background: {{ block.settings.verified_icon_bg_color }};
                    padding: 10px;
                    border-radius: {{ block.settings.corner_radius }}px;
                  }

                  .verified-testimonials-container-{{block.id}} .verified-testimonials-wrapper-{{block.id}} {
                    display: flex;
                    align-items: center;
                  }

                  .verified-testimonials-container-{{block.id}} .verified-avatar-wrapper-{{block.id}} {
                    display: inline-flex;
                    margin-inline-end: 8px;
                    flex: none;
                  }

                  .verified-testimonials-container-{{block.id}} p {
                    margin: 0;
                  }

                  .verified-testimonials-container-{{block.id}} {
                    margin-top: {{ block.settings.top_margin }}px;
                    margin-bottom: {{ block.settings.bottom_margin }}px;
                    max-width: 100%;
                  }

                  .verified-testimonials-wrapper-{{block.id}} {
                    font-size: {{ block.settings.text_size }}px;
                    line-height: 1.5;
                  }
                  .verified-testimonials-container-{{block.id}} .verified-testimonials-icon-{{block.id}} {
                    margin-inline-start: 2px;
                    transform: translateY(2px);
                  }

                  .verified-testimonials-container-{{block.id}} .verified-testimonials-icon-{{block.id}} path {
                    fill: var(--verified-icon-color, #0a84ff);
                  }
                </style>
                <div class="verified-testimonials-container-{{block.id}}">
                  <div class="verified-testimonials-wrapper-{{block.id}}">
                    <div class="verified-avatar-wrapper-{{block.id}}">
                      {% if block.settings.verified_user_1 != blank %}
                        <img
                          src="{{ block.settings.verified_user_1 | img_url:'master' }}"
                          alt="Chris Evans"
                          width="64"
                          height="64"
                          class="verified-testimonials-user-icon-img-class"
                        >
                      {% endif %}

                      {% if block.settings.verified_user_2 != blank %}
                        <img
                          src="{{ block.settings.verified_user_2 | img_url:'master' }}"
                          alt="Taylor Swift"
                          width="64"
                          height="64"
                          class="verified-testimonials-user-icon-img-class"
                        >
                      {% endif %}
                      {% if block.settings.verified_user_3 != blank %}
                        <img
                          src="{{ block.settings.verified_user_3 | img_url:'master' }}"
                          alt="Taylor Swift"
                          width="64"
                          height="64"
                          class="verified-testimonials-user-icon-img-class"
                        >
                      {% endif %}
                    </div>

                    <p>
                      {% if block.settings.verified_username_1 != blank %}
                        <strong>{{ block.settings.verified_username_1 }}</strong>

                        {% if block.settings.verified_icon == true %}
                          <svg
                            class="verified-testimonials-icon-{{block.id}}"
                            xmlns="http://www.w3.org/2000/svg"
                            viewBox="0 0 24 24"
                            width="12"
                            height="12"
                            fill="{{ block.settings.verified_icon_color }}"
                          >
                            <path d="M10.007 2.10377C8.60544 1.65006 7.08181 2.28116 6.41156 3.59306L5.60578 5.17023C5.51004 5.35763 5.35763 5.51004 5.17023 5.60578L3.59306 6.41156C2.28116 7.08181 1.65006 8.60544 2.10377 10.007L2.64923 11.692C2.71404 11.8922 2.71404 12.1078 2.64923 12.308L2.10377 13.993C1.65006 15.3946 2.28116 16.9182 3.59306 17.5885L5.17023 18.3942C5.35763 18.49 5.51004 18.6424 5.60578 18.8298L6.41156 20.407C7.08181 21.7189 8.60544 22.35 10.007 21.8963L11.692 21.3508C11.8922 21.286 12.1078 21.286 12.308 21.3508L13.993 21.8963C15.3946 22.35 16.9182 21.7189 17.5885 20.407L18.3942 18.8298C18.49 18.6424 18.6424 18.49 18.8298 18.3942L20.407 17.5885C21.7189 16.9182 22.35 15.3946 21.8963 13.993L21.3508 12.308C21.286 12.1078 21.286 11.8922 21.3508 11.692L21.8963 10.007C22.35 8.60544 21.7189 7.08181 20.407 6.41156L18.8298 5.60578C18.6424 5.51004 18.49 5.35763 18.3942 5.17023L17.5885 3.59306C16.9182 2.28116 15.3946 1.65006 13.993 2.10377L12.308 2.64923C12.1078 2.71403 11.8922 2.71404 11.692 2.64923L10.007 2.10377ZM6.75977 11.7573L8.17399 10.343L11.0024 13.1715L16.6593 7.51465L18.0735 8.92886L11.0024 15.9999L6.75977 11.7573Z"></path>
                          </svg>
                        {% endif %}
                      {% endif %}
                      {% if block.settings.verified_username_2 != blank %}
                        , <strong>{{ block.settings.verified_username_2 }}</strong>

                        {% if block.settings.verified_icon == true %}
                          <svg
                            class="verified-testimonials-icon-{{block.id}}"
                            xmlns="http://www.w3.org/2000/svg"
                            viewBox="0 0 24 24"
                            width="12"
                            height="12"
                            fill="{{ block.settings.verified_icon_color }}"
                          >
                            <path d="M10.007 2.10377C8.60544 1.65006 7.08181 2.28116 6.41156 3.59306L5.60578 5.17023C5.51004 5.35763 5.35763 5.51004 5.17023 5.60578L3.59306 6.41156C2.28116 7.08181 1.65006 8.60544 2.10377 10.007L2.64923 11.692C2.71404 11.8922 2.71404 12.1078 2.64923 12.308L2.10377 13.993C1.65006 15.3946 2.28116 16.9182 3.59306 17.5885L5.17023 18.3942C5.35763 18.49 5.51004 18.6424 5.60578 18.8298L6.41156 20.407C7.08181 21.7189 8.60544 22.35 10.007 21.8963L11.692 21.3508C11.8922 21.286 12.1078 21.286 12.308 21.3508L13.993 21.8963C15.3946 22.35 16.9182 21.7189 17.5885 20.407L18.3942 18.8298C18.49 18.6424 18.6424 18.49 18.8298 18.3942L20.407 17.5885C21.7189 16.9182 22.35 15.3946 21.8963 13.993L21.3508 12.308C21.286 12.1078 21.286 11.8922 21.3508 11.692L21.8963 10.007C22.35 8.60544 21.7189 7.08181 20.407 6.41156L18.8298 5.60578C18.6424 5.51004 18.49 5.35763 18.3942 5.17023L17.5885 3.59306C16.9182 2.28116 15.3946 1.65006 13.993 2.10377L12.308 2.64923C12.1078 2.71403 11.8922 2.71404 11.692 2.64923L10.007 2.10377ZM6.75977 11.7573L8.17399 10.343L11.0024 13.1715L16.6593 7.51465L18.0735 8.92886L11.0024 15.9999L6.75977 11.7573Z"></path>
                          </svg>
                        {% endif %}
                      {% endif %}
                      {% if block.settings.verified_username_3 != blank %}
                        , <strong>{{ block.settings.verified_username_3 }}</strong>

                        {% if block.settings.verified_icon == true %}
                          <svg
                            class="verified-testimonials-icon-{{block.id}}"
                            xmlns="http://www.w3.org/2000/svg"
                            viewBox="0 0 24 24"
                            width="12"
                            height="12"
                            fill="{{ block.settings.verified_icon_color }}"
                          >
                            <path d="M10.007 2.10377C8.60544 1.65006 7.08181 2.28116 6.41156 3.59306L5.60578 5.17023C5.51004 5.35763 5.35763 5.51004 5.17023 5.60578L3.59306 6.41156C2.28116 7.08181 1.65006 8.60544 2.10377 10.007L2.64923 11.692C2.71404 11.8922 2.71404 12.1078 2.64923 12.308L2.10377 13.993C1.65006 15.3946 2.28116 16.9182 3.59306 17.5885L5.17023 18.3942C5.35763 18.49 5.51004 18.6424 5.60578 18.8298L6.41156 20.407C7.08181 21.7189 8.60544 22.35 10.007 21.8963L11.692 21.3508C11.8922 21.286 12.1078 21.286 12.308 21.3508L13.993 21.8963C15.3946 22.35 16.9182 21.7189 17.5885 20.407L18.3942 18.8298C18.49 18.6424 18.6424 18.49 18.8298 18.3942L20.407 17.5885C21.7189 16.9182 22.35 15.3946 21.8963 13.993L21.3508 12.308C21.286 12.1078 21.286 11.8922 21.3508 11.692L21.8963 10.007C22.35 8.60544 21.7189 7.08181 20.407 6.41156L18.8298 5.60578C18.6424 5.51004 18.49 5.35763 18.3942 5.17023L17.5885 3.59306C16.9182 2.28116 15.3946 1.65006 13.993 2.10377L12.308 2.64923C12.1078 2.71403 11.8922 2.71404 11.692 2.64923L10.007 2.10377ZM6.75977 11.7573L8.17399 10.343L11.0024 13.1715L16.6593 7.51465L18.0735 8.92886L11.0024 15.9999L6.75977 11.7573Z"></path>
                          </svg>
                        {% endif %}
                      {% endif %}
                      {% if block.settings.verified_username_content != blank %}
                        {{ block.settings.verified_username_content }}
                      {% endif %}
                    </p>
                  </div>
                </div>
            

⚙️ Step 2: Add Schema Settings

Now scroll to the bottom of the main-product.liquid file or your section file, and add the following schema settings to make the block customizable from the theme editor:


Full Code
 
                   {
      "type": "verified-testimonials",
      "name": "Verified testimonials",
      "settings": [
        {
          "type": "color",
          "id": "verified_icon_bg_color",
          "default": "#fcf8f5",
          "label": "Background color"
		},
        {
          "type": "range",
          "id": "corner_radius",
          "min": 0,
          "max": 50,
          "step": 1,
          "unit": "px",
          "label": "Corner radius",
          "default": 50
		},
        {
          "type": "header",
          "content": "Verified user"
        },
        {
          "type": "image_picker",
          "id": "verified_user_1",
          "label": "User #1"
        },
        {
          "type": "image_picker",
          "id": "verified_user_2",
          "label": "User #2"
        },
        {
          "type": "image_picker",
          "id": "verified_user_3",
          "label": "User #3"
        },
        {
          "type": "range",
          "id": "verified_user_size",
          "min": 20,
          "max": 60,
          "step": 1,
          "unit": "px",
          "label": "User size",
          "default": 30
		},
        {
          "type": "header",
          "content": "Verified username"
        },
        {
          "type": "inline_richtext",
          "id": "verified_username_1",
          "label": "Name #1"
        },
        {
          "type": "inline_richtext",
          "id": "verified_username_2",
          "label": "Name #2"
        },
        {
          "type": "inline_richtext",
          "id": "verified_username_3",
          "label": "Name #3"
        },
        {
          "type": "checkbox",
          "id": "verified_icon",
          "label": "Verified icon",
          "default": false
		},
        {
          "type": "color",
          "id": "verified_icon_color",
          "default": "#0862F5",
          "label": "Verified icon"
		},
        {
          "type": "inline_richtext",
          "id": "verified_username_content",
          "label": "Content",
          "default": "1,000+ others are loving this!"
        },
        {
          "type": "range",
          "id": "text_size",
          "min": 10,
          "max": 20,
          "step": 1,
          "unit": "px",
          "label": "Text size",
          "default": 14
		},
        {
          "type": "header",
          "content": "Block spacing"
		},
		{
          "type": "range",
          "id": "top_margin",
          "min": 0,
          "max": 50,
          "step": 1,
          "unit": "px",
          "label": "Top margin",
          "default": 10
		},
		{
          "type": "range",
          "id": "bottom_margin",
          "min": 0,
          "max": 50,
          "step": 1,
          "unit": "px",
          "label": "Bottom margin",
          "default": 10
		}
      ]
    },          
            

🎉 Done!

You’ve successfully added a social proof testimonial block to your product page using the Dawn theme. You can now customize the avatars, usernames, colors, and more—right from your Shopify theme editor!

Comments

Popular posts from this blog

How to create a Image scrolling/marquee section in Shopify theme

We are excited to unveil our latest addition to the customization options for your website: the Image Marquee section. This dynamic feature allows you to create a continuous scrolling display of your brand logos, offering a visually engaging way to showcase your partners, sponsors, or featured brands. Let's dive into the features and customization options available with the Image Marquee section. Key Features Continuous Scrolling Animation : The marquee animation provides a smooth, continuous scroll of images, giving your site a modern and dynamic feel. Responsive Design : The section is fully responsive, ensuring that your logos look great on desktops, tablets, and mobile devices. Customizable Speed and Direction : Adjust the scroll speed and choose the direction of the animation to fit your design preferences. Interactive Elements : You can enable or disable the pause-on-hover feature, giving visitors the option to pause the marquee for a closer look at the logos. Styling Option...

How to Create Fake Sales Pop-Ups on Your Shopify Store

 How to Create Fake Sales Pop-Ups on Your Shopify Store Adding sales pop-ups to your Shopify store can create a sense of urgency and social proof, encouraging potential customers to make a purchase. While it's always best to be transparent and honest with your customers, some store owners may choose to implement fake sales pop-ups to simulate recent purchases. Here's a step-by-step guide on how to create such pop-ups using custom code in your Shopify store. Step 1: Create a New Section First, you'll need to create a new section in your Shopify theme. To do this, follow these steps: Go to the Shopify Admin Dashboard . Navigate to Online Store > Themes . Click on Actions > Edit Code for the theme you want to modify. Under the Sections directory, click on Add a new section . Name the section customer-purchased . Conclusion This guide walks you through creating a fake sales pop-up on your Shopify store using a custom section. Full code ...

Create a Dynamic Video Slider with Customization Options in shopify

 In the fast-paced world of digital content, captivating your audience's attention is crucial. One effective way to engage your viewers is through dynamic video sliders, seamlessly blending visuals with interactivity. Today, we unveil a versatile solution that not only showcases your video content but also offers customization options to align with your brand's identity. Unveiling the Interface Our video slider combines sleek design with intuitive functionality. Let's dive into its key components: Background Customization: Set the stage with a background color of your choice to complement your brand's aesthetic. Engaging Heading and Text: Craft a compelling message with customizable heading and descriptive text, ensuring your audience stays informed and intrigued. Interactive Play Button: Enhance user engagement with a play button overlay, enticing viewers to interact with your video content. Navigation Arrows: Navigate through the slider effortlessly with customiza...