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 featured benefit section in Shopify

 Adding a Featured Benefits Section in Shopify can elevate your product page by highlighting the key features of your products with visually appealing layouts. Here's a step-by-step guide on how to create a professional-looking product benefits section using Shopify's custom sections and schema settings.



Step-by-Step Guide to Creating a Featured Benefits Section

  1. Access Your Shopify Theme

    • Log in to your Shopify Admin and navigate to Online Store > Themes.
    • Click Actions > Edit Code on your active theme.
  2. Create a New Section

    • Under the Sections directory, click Add a new section and name it something relevant, like featured-benefits.
    • This will create a .liquid file where you will define the structure, styles, and schema settings.
  3. Define the Section Layout

    • Copy the provided Liquid and CSS code below into your new section file. This will create a flexible and responsive 3-column layout: left, center, and right.


HTML
                          {% assign header_font = section.settings.heading_font %}
{% assign header_font_one = section.settings.text_font_heading %}
{% assign header_font_two = section.settings.text_font_description %}
<style>
    {{ header_font | font_face }}
    {{ header_font_one | font_face }}
    {{ header_font_two | font_face }}

     .fp-page-width--{{section.id}} {
       max-width: 1620px !important;
       padding: 0 50px;
       margin: 0 auto;
     }
    .fp-image--{{section.id}}{
      height: 437px;
      width:  100%;
      text-align: center;
    }
    .fp-image--{{section.id}} img, .fp-image--{{section.id}} svg{
      max-width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .fp-feature-icon--{{section.id}}{
      width: {{ section.settings.icon_width }}px;
    }
    .fp-feature-icon--{{section.id}} img{
      max-width: 100%;
      object-fit: cover;
    }
    .main-heading--{{section.id}} h2, .custom-featured-collection h2, .page-collection .rich-text__heading {
        font-weight: 700;
        font-size: 36px;
        line-height: 52px;
        color: {{ section.settings.heading_color }};
        letter-spacing: 0;
        text-align: center;
        margin: 0 0 15px;
        font-family: {{ header_font.family}}, {{ header_font.fallback_families }} !important;
    }
    .fp-inner-content--{{section.id}} h3 {
        font-weight: 700;
        font-size: 20px;
        line-height: 29px;
        color: {{ section.settings.text_color }};
        letter-spacing: 0;
        margin: 0 0 8px;
       font-family: {{ header_font_one.family}}, {{ header_font_one.fallback_families }} !important;
    }
    .fp-inner-content--{{section.id}} p {
        font-weight: 400;
        font-size: 16px;
        line-height: 23px;
        color: {{ section.settings.text_color }};
        letter-spacing: 0;
        margin: 0;
       font-family: {{ header_font_two.family}}, {{ header_font_two.fallback_families }} !important;
    }
    .fp-left-col--{{section.id}} .fp-inner-content--{{section.id}} p, .fp-left-col--{{section.id}} .fp-inner-content--{{section.id}} h3 {
    	text-align: right;
    }
    .fp-grid-col--{{section.id}} {
        display: flex;
        align-items: center;
        gap: {{ section.settings.gap_between_columns }}px;
        padding: 30px 0 0;
    }
    .fp-image-content-wrapper--{{section.id}} {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .fp-right-col--{{section.id}} .fp-image-content-wrapper--{{section.id}} {
        flex-direction: row-reverse;
    }
    .fp-left-col--{{section.id}} {
        width: 30%;
    }
    .fp-center-column--{{section.id}} {
        width: 40%;
    }
    .fp-right-col--{{section.id}} {
        width: 30%;
    }
    .fp-content--{{section.id}} {
        display: flex;
        flex-direction: column;
        gap: 70px;
    }
    .fp-section--{{section.id}} {
        padding: {{ section.settings.section_padding_top }}px 0 {{ section.settings.section_padding_bottom }}px;
        background-repeat: no-repeat;
        background-size: cover;
    }
      {% if section.settings.background_image %}
     .fp-section--{{section.id}} {
          background-image: url({{ section.settings.background_image | img_url:'master' }});
      }
      {% endif %}

    .mob-fp-img--{{section.id}} {
        display: none ;
    }

    /*** MEDIA ***/
    @media only screen and (max-width: 1199px) {
    .fp-content--{{section.id}} {
        gap: 30px;
    }
    }

    @media only screen and (max-width: 989px) {
      .fp-content--{{section.id}} {
        gap: {{ section.settings.reduce_gap }}px;
    }
     .fp-left-col--{{section.id}} .fp-content--{{section.id}} .fp-image-content-wrapper--{{section.id}}:last-child {
        margin-bottom: {{ section.settings.reduce_gap }}px;
    }
    .fp-feature-icon--{{section.id}}{
      width: {{ section.settings.icon_width_tab }}px;
    }
    .fp-center-column--{{section.id}} {
        width: 100%;
    }
    .fp-image--{{section.id}} img {
        max-width: 370px;
        margin: 0 auto;
        display: table;
    }
    .fp-left-col--{{section.id}} {
        width: 100%;
    }
    .fp-right-col--{{section.id}} {
        width: 100%;
    }
    .fp-right-col--{{section.id}} .fp-image-content-wrapper--{{section.id}} {
        flex-direction: row-reverse;
        justify-content: left;
    }
    .fp-image-content-wrapper--{{section.id}} {
        flex-direction: row-reverse;
        justify-content: left;
    }
    .fp-left-col--{{section.id}} .fp-inner-content--{{section.id}} p, .fp-left-col--{{section.id}} .fp-inner-content--{{section.id}} h3 {
        text-align: left;
    }
    .fp-grid-col--{{section.id}} {
        padding: 30px 0 60px;
    }
    .mob-fp-img--{{section.id}} {
        display: block;
    }
    .web-fp-img--{{section.id}} {
        display: none !important;
    }
    .fp-page-width--{{section.id}} {
       padding: 0 30px;
    }
        /* Mobile-first: Reorder columns */
  .fp-grid-col--{{section.id}} {
    flex-direction: column;
    gap: 0;
  }

  /* Center image comes first */
  .fp-center-column--{{section.id}} {
    order: 1;
    width: 100%;
  }

  /* Left column comes second */
  .fp-left-col--{{section.id}} {
    order: 2;
    width: 100%;
    text-align: left;
  }

  /* Right column comes third */
  .fp-right-col--{{section.id}} {
    order: 3;
    width: 100%;
  }
    }

    @media (max-width:749px) {
    .main-heading--{{section.id}} h2, .custom-featured-collection h2, .page-collection .rich-text__heading {
        font-size: 28px;
        line-height: 37px;
    }
    .fp-image--{{section.id}} img {
        max-width: 280px;
    }
    .fp-section--{{section.id}} {
        padding: 4rem 0 0rem;
        background: #f6f5f8;
        background-image: none !important;
    }
  }
     @media only screen and (max-width: 480px) {
    .fp-feature-icon--{{section.id}}{
      width: {{ section.settings.icon_width_mob }}px;
    }
     }
</style>

<section class="fp-section--{{section.id}}">
  <div class="fp-page-width--{{section.id}}">
    <div class="fp-wrapper--{{section.id}}">
      <div class="main-heading--{{section.id}}">
        {% if section.settings.section_heading %}
          <h2>{{ section.settings.section_heading }}</h2>
        {% endif %}
      </div>
      <div class="fp-grid-col--{{section.id}}">
        <!-- Left Column -->
        <div class="fp-left-col--{{section.id}} ">
          <div class="fp-content--{{section.id}}">
            {% for block in section.blocks %}
              {% if block.settings.feature_position == 'left' %}
                <div class="fp-image-content-wrapper--{{section.id}}">
                  <div class="fp-inner-content--{{section.id}}">
                    <h3>{{ block.settings.feature_title }}</h3>
                    <p>{{ block.settings.feature_description }}</p>
                  </div>
                  {% if block.settings.feature_icon %}
                    <div class="fp-feature-icon--{{section.id}}">
                      <img
                        src="{{ block.settings.feature_icon | img_url:'master' }}"
                        alt="{{ block.settings.feature_title }}"
                      >
                    </div>
                  {% endif %}
                </div>
              {% endif %}
            {% endfor %}
          </div>
        </div>

        <!-- Center Image Column -->
        <div class="fp-center-column--{{section.id}} ">
          <div class="fp-image--{{section.id}}">
            {% if section.settings.product_image_desktop %}
              <img
                src="{{ section.settings.product_image_desktop | img_url:'master' }}"
                alt="feature-image"
                class="web-fp-img--{{section.id}}"
              >
              {% else %}
              {{ 'product-apparel-1' | placeholder_svg_tag: 'placeholder-svg' }}
            {% endif %}
            {% if section.settings.product_image_mobile %}
              <img
                src="{{ section.settings.product_image_mobile | img_url:'master' }}"
                alt="feature-image-mobile"
                class="mob-fp-img--{{section.id}}"
              >
            {% endif %}
          </div>
        </div>

        <!-- Right Column -->
        <div class="fp-right-col--{{section.id}} ">
          <div class="fp-content--{{section.id}}">
            {% for block in section.blocks %}
              {% if block.settings.feature_position == 'right' %}
                <div class="fp-image-content-wrapper--{{section.id}}">
                  <div class="fp-inner-content--{{section.id}}">
                    <h3>{{ block.settings.feature_title }}</h3>
                    <p>{{ block.settings.feature_description }}</p>
                  </div>
                  {% if block.settings.feature_icon %}
                    <div class="fp-feature-icon--{{section.id}}">
                      <img
                        src="{{ block.settings.feature_icon | img_url:'master' }}"
                        alt="{{ block.settings.feature_title }}"
                      >
                    </div>
                  {% endif %}
                </div>
              {% endif %}
            {% endfor %}
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

{% schema %}
{
  "name": "Product Features Section",
  "settings": [
    {
      "type": "text",
      "id": "section_heading",
      "label": "Section Heading",
      "default": "Super Easy To Install"
    },
    {
      "type": "image_picker",
      "id": "background_image",
      "label": "Background Image"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "Background Color",
      "default": "#ffffff"
    },
    {
      "type": "range",
      "id": "section_padding_top",
      "label": "Section Padding Top",
      "min": 0,
      "max": 100,
      "unit": "px",
      "default": 50
    },
    {
      "type": "range",
      "id": "section_padding_bottom",
      "label": "Section Padding Bottom",
      "min": 0,
      "max": 100,
      "unit": "px",
      "default": 10
    },
    {
      "type": "range",
      "id": "gap_between_columns",
      "label": "Gap Between Columns",
      "min": 0,
      "max": 100,
      "unit": "px",
      "default": 38
    },
    {
      "type": "color",
      "id": "heading_color",
      "label": "Heading Color",
      "default": "#2a2a2a"
    },
    {
      "type": "font_picker",
      "id": "heading_font",
      "label": "Heading Font",
      "default": "sans-serif"
    },
    {
      "type": "font_picker",
      "id": "text_font_heading",
      "label": "Block Text heading",
      "default": "sans-serif"
    },
    {
      "type": "font_picker",
      "id": "text_font_description",
      "label": "Block text description",
      "default": "sans-serif"
    },
    {
      "type": "color",
      "id": "text_color",
      "label": "Text Color",
      "default": "#000000"
    },
    {
      "type": "image_picker",
      "id": "product_image_desktop",
      "label": "Product Image (Desktop)"
    },
    {
      "type": "image_picker",
      "id": "product_image_mobile",
      "label": "Product Image (Mobile)"
    },
    {
      "type": "range",
      "id": "icon_width",
      "label": "Icon Width (Desktop)",
      "min": 10,
      "max": 101,
      "unit": "px",
      "default": 50
    },
    {
      "type": "range",
      "id": "icon_width_tab",
      "label": "Icon Width (Tablet)",
      "min": 10,
      "max": 101,
      "unit": "px",
      "default": 50
    },
    {
      "type": "range",
      "id": "icon_width_mob",
      "label": "Icon Width (Mobile)",
      "min": 10,
      "max": 101,
      "unit": "px",
      "default": 50
    },
    {
      "type": "range",
      "id": "reduce_gap",
      "label": "Gap Reduction b/w text(Mobile)",
      "min": 0,
      "max": 100,
      "step": 1,
      "default": 35,
      "unit": "px"
    }
  ],
  "blocks": [
    {
      "type": "product_feature",
      "name": "Product Feature",
      "settings": [
        {
          "type": "text",
          "id": "feature_title",
          "label": "Feature Title",
          "default": "Case Friendly"
        },
        {
          "type": "textarea",
          "id": "feature_description",
          "label": "Feature Description",
          "default": "Compatible with most cases. Weat it with a Ringke case for a perfect fit."
        },
        {
          "type": "image_picker",
          "id": "feature_icon",
          "label": "Feature Icon"
        },
        {
          "type": "select",
          "id": "feature_position",
          "label": "Feature Position",
          "default": "left",
          "options": [
            {
              "value": "left",
              "label": "Left"
            },
            {
              "value": "right",
              "label": "Right"
            }
          ]
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "Product Features Section",
      "category": "Custom Sections",
      "blocks": [
        {
          "type": "product_feature"
        },
        {
          "type": "product_feature"
        },
        {
          "type": "product_feature"
        },
        {
          "type": "product_feature",
          "settings": {
            "feature_position": "right"
          }
        },
        {
          "type": "product_feature",
          "settings": {
            "feature_position": "right"
          }
        },
        {
          "type": "product_feature",
          "settings": {
            "feature_position": "right"
          }
        }
      ]
    }
  ]
}
{% endschema %}
            

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