{"id":22518,"date":"2025-10-17T11:00:00","date_gmt":"2025-10-17T05:30:00","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/?p=22518"},"modified":"2025-10-17T17:11:35","modified_gmt":"2025-10-17T11:41:35","slug":"shopify-before-and-after-slider","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/shopify-before-and-after-slider\/","title":{"rendered":"How to Add a Shopify Before and After Slider?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Shopify doesn\u2019t include a built-in before-and-after image slider, but adding one is simple.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide will show you the easiest ways to add a Shopify before and after slider to your store to highlight product impact and build customer trust.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ways to Add a Before and After Slider in Shopify<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are probably three ways to add this:&nbsp;&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>In-built themes &#8211;<\/strong> Some Shopify themes come with a built-in before-and-after slider section. This option is simple if your theme supports it, but it may offer basic functionality and limited customization.<br><\/li>\n\n\n\n<li><strong>Via custom code &#8211;<\/strong> If there is no in-built option, you can manually add a before and after slider using Liquid, CSS, and JavaScript code into your theme. This method offers more control and customization but requires technical skills and more setup time.<br><\/li>\n\n\n\n<li><strong>Using the Shopify app &#8211; <\/strong>Using a Shopify app is the most flexible and beginner-friendly approach. Apps provide ready-made before and after slider sections, advanced design options, and responsiveness, with no coding needed. This method works with any theme and often includes extensive customization features.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to Add a Before and After Slider Using the Shopify App<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A good before\/after Shopify slider should have a clean, minimal design with a bold dividing line or handle that users can easily drag left and right so the transformation looks sharp and engaging.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Like this:&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"351\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-preview-1-700x351.png\" alt=\"Preview of the before and after section in shopify using an app\" class=\"wp-image-22525\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-preview-1-700x351.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-preview-1-250x126.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-preview-1-768x386.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-preview-1-403x202.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-preview-1-964x484.png 964w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-preview-1-120x60.png 120w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-preview-1.png 1440w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">With the MIT Sections Pro Shopify app, you can customize settings for mobile and desktop, include a Shop Now button, and personalize each element. This offers more flexibility than code-based or alternative methods.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the steps to configure the app.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Install and Select Your Desired Section<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install the <a href=\"https:\/\/apps.shopify.com\/mit-custom-sections\" target=\"_blank\" rel=\"noopener\"><strong>MIT Sections Pro<\/strong><\/a><strong> <\/strong>from the Shopify App store, and from the app dashboard, click <strong>Browse sections <\/strong>and search for the <strong>Before After slider<\/strong>.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"380\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/browse-section-8.png\" alt=\"shows a search for &quot;before after slider&quot; with a preview of the section\" class=\"wp-image-22527\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/browse-section-8.png 474w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/browse-section-8-250x200.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/browse-section-8-403x323.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/browse-section-8-120x96.png 120w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Step 2: Click the \u201cTry for Free\u201d Button<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Select the section and click the <strong>Try for Free <\/strong>button to get the no-cost trial of the section.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"309\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/try-for-free-7-700x309.png\" alt=\"A preview of a Shopify before and after slider with a &quot;Try for free&quot; button. \" class=\"wp-image-22529\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/try-for-free-7-700x309.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/try-for-free-7-250x111.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/try-for-free-7-768x340.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/try-for-free-7-403x178.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/try-for-free-7-964x426.png 964w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/try-for-free-7-120x53.png 120w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/try-for-free-7.png 1244w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">During the free trial, you will be directed to the MIT demo store. After purchasing the section, you can integrate it into your store&#8217;s theme.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, from the theme editor, select the <strong>Meetanshi Before &amp; After <\/strong>section<strong>.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"161\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-add-section.png\" alt=\"click add section and select Meetanshi Before &amp; after\" class=\"wp-image-22531\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-add-section.png 547w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-add-section-250x74.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-add-section-403x119.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-add-section-120x35.png 120w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Step 3: Edit the Before\/After Section<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Then, from here, you can customize the slider as per your needs and make the section yours.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"358\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-edit-section-1-700x358.png\" alt=\"The theme editor shows the settings for a &quot;Meetanshi Before &amp; After&quot; block.\" class=\"wp-image-22533\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-edit-section-1-700x358.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-edit-section-1-250x128.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-edit-section-1-768x392.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-edit-section-1-403x206.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-edit-section-1-964x492.png 964w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-edit-section-1-120x61.png 120w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/app-edit-section-1.png 1394w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Once you are done with the changes, <strong>save<\/strong> them.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"387\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/save-changes-4-700x387.png\" alt=\"Customized the before &amp; after slider in Shopify and click save changes\n\n\" class=\"wp-image-22535\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/save-changes-4-700x387.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/save-changes-4-250x138.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/save-changes-4-768x424.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/save-changes-4-403x223.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/save-changes-4-964x532.png 964w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/save-changes-4-120x66.png 120w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/save-changes-4.png 1394w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Steps to Add Before &amp; After Shopify Slider (Via Custom Code)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These are the steps to create a before-and-after slider using the liquid code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Create the Liquid Section File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, create the main section file. Head to your Shopify admin, go to <strong>Online Store &gt; Themes &gt; \u2026(three dots) &gt; Edit code<\/strong>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Under the <strong>Sections<\/strong> directory, add a new section, and name the file<strong> before-after-slider.liquid.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copy and paste the entire code below into the new file.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{{ 'before-after.css' | asset_url | stylesheet_tag }}\n{{ 'before-after.js' | asset_url | script_tag }}\n\n&lt;div class=\"before-after-slider-section\">\n  &lt;div class=\"before-after-container\">\n    {% if section.settings.heading != blank %}\n      &lt;h2 class=\"section-heading\">{{ section.settings.heading }}&lt;\/h2>\n    {% endif %}\n    {% if section.settings.description != blank %}\n      &lt;p class=\"section-description\">{{ section.settings.description }}&lt;\/p>\n    {% endif %}\n\n    &lt;div class=\"before-after-wrapper\">\n      &lt;div class=\"before-after-slider\">\n        &lt;div class=\"before-image-container\">\n          {% if section.settings.before_image != blank %}\n            &lt;img src=\"{{ section.settings.before_image | img_url: '1000x' }}\" alt=\"Before\" class=\"before-image\">\n          {% else %}\n            {{ 'image' | placeholder_svg_tag: 'placeholder-image' }}\n          {% endif %}\n          &lt;div class=\"before-label\">{{ section.settings.before_label }}&lt;\/div>\n        &lt;\/div>\n        &lt;div class=\"after-image-container\">\n          {% if section.settings.after_image != blank %}\n            &lt;img src=\"{{ section.settings.after_image | img_url: '1000x' }}\" alt=\"After\" class=\"after-image\">\n          {% else %}\n            {{ 'image' | placeholder_svg_tag: 'placeholder-image' }}\n          {% endif %}\n          &lt;div class=\"after-label\">{{ section.settings.after_label }}&lt;\/div>\n        &lt;\/div>\n        &lt;input type=\"range\" min=\"0\" max=\"100\" value=\"50\" class=\"slider-range\">\n        &lt;div class=\"slider-handle\">&lt;\/div>\n      &lt;\/div>\n    &lt;\/div>\n    \n    {% if section.settings.show_button and section.settings.button_text != blank and section.settings.button_link != blank %}\n      &lt;a href=\"{{ section.settings.button_link }}\" class=\"shop-now-button\">{{ section.settings.button_text }}&lt;\/a>\n    {% endif %}\n  &lt;\/div>\n&lt;\/div>\n\n{% schema %}\n{\n  \"name\": \"Before &amp; After Slider\",\n  \"settings\": [\n    {\n      \"type\": \"text\",\n      \"id\": \"heading\",\n      \"label\": \"Heading\",\n      \"default\": \"Before \/ After\"\n    },\n    {\n      \"type\": \"richtext\",\n      \"id\": \"description\",\n      \"label\": \"Description\",\n      \"default\": \"&lt;p>Showcase your product benefit by using before\/after image comparison.&lt;\/p>\"\n    },\n    {\n      \"type\": \"image_picker\",\n      \"id\": \"before_image\",\n      \"label\": \"Before Image\"\n    },\n    {\n      \"type\": \"text\",\n      \"id\": \"before_label\",\n      \"label\": \"Before Label\",\n      \"default\": \"Before\"\n    },\n    {\n      \"type\": \"image_picker\",\n      \"id\": \"after_image\",\n      \"label\": \"After Image\"\n    },\n    {\n      \"type\": \"text\",\n      \"id\": \"after_label\",\n      \"label\": \"After Label\",\n      \"default\": \"After\"\n    },\n    {\n      \"type\": \"checkbox\",\n      \"id\": \"show_button\",\n      \"label\": \"Show 'Shop now' button\",\n      \"default\": true\n    },\n    {\n      \"type\": \"text\",\n      \"id\": \"button_text\",\n      \"label\": \"Button text\",\n      \"default\": \"Shop now\"\n    },\n    {\n      \"type\": \"url\",\n      \"id\": \"button_link\",\n      \"label\": \"Button link\"\n    }\n  ],\n  \"presets\": [\n    {\n      \"name\": \"Before &amp; After Slider\"\n    }\n  ]\n}\n{% endschema %}\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Create the CSS File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This file handles all the styling. In your theme code editor, go to the <strong>Assets<\/strong> directory, add a new asset, and name the file<strong> before-after.css<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copy and paste the entire CSS code below into the newly created file.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.before-after-slider-section {\n  padding: 40px 0;\n}\n\n.before-after-container {\n  max-width: 1000px;\n  margin: 0 auto;\n  padding: 0 20px;\n  text-align: center;\n}\n\n.section-heading {\n  font-size: 2.5rem;\n  font-weight: bold;\n  margin-bottom: 10px;\n}\n\n.section-description {\n  font-size: 1rem;\n  color: #555;\n  margin-bottom: 30px;\n}\n\n.before-after-wrapper {\n  position: relative;\n  width: 100%;\n  border-radius: 8px;\n  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);\n  overflow: hidden; \/* Ensures the images stay within the container *\/\n}\n\n.before-after-slider {\n  position: relative;\n  width: 100%;\n  padding-bottom: 60%; \/* This creates a responsive 16:10 aspect ratio *\/\n  overflow: hidden;\n  cursor: ew-resize; \/* Cursor shows it's a slider *\/\n}\n\n.before-image-container,\n.after-image-container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n}\n\n.after-image-container {\n  width: 50%; \/* Initial width for the after image *\/\n}\n\n.before-image,\n.after-image {\n  display: block;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n  position: absolute;\n  top: 0;\n  left: 0;\n}\n\n.slider-handle {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: 40px;\n  height: 40px;\n  background-color: #fff;\n  border-radius: 50%;\n  border: 2px solid #ccc;\n  z-index: 10;\n  pointer-events: none; \/* Prevents the handle from interfering with the range input *\/\n}\n\n.slider-handle::before {\n  content: '';\n  position: absolute;\n  top: 0;\n  left: 50%;\n  height: 100%;\n  width: 2px;\n  background-color: #fff;\n  transform: translateX(-50%);\n  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n}\n\n.slider-handle::after {\n  content: '||';\n  display: block;\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  color: #333;\n  font-size: 1.2rem;\n  font-weight: bold;\n}\n\n.slider-range {\n  position: absolute;\n  top: 50%;\n  left: 0;\n  width: 100%;\n  transform: translateY(-50%);\n  -webkit-appearance: none;\n  appearance: none;\n  background: transparent;\n  cursor: ew-resize;\n  z-index: 5;\n  margin: 0;\n  padding: 0;\n  opacity: 0; \/* Hide the default range input *\/\n}\n\n.before-label,\n.after-label {\n  position: absolute;\n  bottom: 10px;\n  padding: 5px 10px;\n  background-color: rgba(0, 0, 0, 0.5);\n  color: #fff;\n  font-size: 0.9rem;\n  border-radius: 4px;\n  z-index: 11;\n}\n\n.before-label {\n  left: 10px;\n}\n\n.after-label {\n  right: 10px;\n}\n\n.shop-now-button {\n  display: inline-block;\n  margin-top: 30px;\n  padding: 15px 30px;\n  background-color: #000;\n  color: #fff;\n  text-decoration: none;\n  text-transform: uppercase;\n  letter-spacing: 1px;\n  border-radius: 5px;\n  transition: background-color 0.3s ease;\n}\n\n.shop-now-button:hover {\n  background-color: #333;\n}\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Create the JavaScript File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This file contains the logic that makes the slider interactive. Go to the <strong>Assets<\/strong> directory again, add a new asset, and name the file<strong> before-after.js<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copy and paste the entire JavaScript code below into the newly created file.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">document.addEventListener('DOMContentLoaded', () => {\n  \/\/ This listener ensures the script runs when the page loads.\n  \/\/ It also handles re-initialization in the Shopify theme editor.\n  function initSliders() {\n    const sliderContainers = document.querySelectorAll('.before-after-slider');\n\n    sliderContainers.forEach(container => {\n      const slider = container.querySelector('.slider-range');\n      const afterImageContainer = container.querySelector('.after-image-container');\n      const handle = container.querySelector('.slider-handle');\n\n      \/\/ Function to update the slider position\n      function updateSlider(value) {\n        const percentage = value + '%';\n        afterImageContainer.style.width = percentage;\n        handle.style.left = percentage;\n      }\n\n      \/\/ Sync the range input with the visual slider\n      slider.addEventListener('input', (e) => {\n        updateSlider(e.target.value);\n      });\n\n      \/\/ Dragging functionality for the handle\n      let isDragging = false;\n\n      function onPointerDown(e) {\n        isDragging = true;\n        container.style.cursor = 'grabbing';\n      }\n\n      function onPointerUp() {\n        isDragging = false;\n        container.style.cursor = 'ew-resize';\n      }\n\n      function onPointerMove(e) {\n        if (!isDragging) return;\n\n        \/\/ Get the touch or mouse event coordinates\n        const clientX = e.touches ? e.touches[0].clientX : e.clientX;\n        const containerRect = container.getBoundingClientRect();\n        \n        let newPosition = clientX - containerRect.left;\n\n        \/\/ Clamp the position to stay within the container\n        if (newPosition &lt; 0) newPosition = 0;\n        if (newPosition > containerRect.width) newPosition = containerRect.width;\n\n        const percentage = (newPosition \/ containerRect.width) * 100;\n\n        updateSlider(percentage);\n        slider.value = percentage;\n      }\n\n      \/\/ Add event listeners for both mouse and touch\n      container.addEventListener('mousedown', onPointerDown);\n      container.addEventListener('touchstart', onPointerDown);\n      \n      document.addEventListener('mouseup', onPointerUp);\n      document.addEventListener('touchend', onPointerUp);\n      \n      document.addEventListener('mousemove', onPointerMove);\n      document.addEventListener('touchmove', onPointerMove);\n    });\n  }\n\n  \/\/ Initial call to set up the sliders\n  initSliders();\n\n  \/\/ Re-initialize sliders when a section is loaded in the theme editor\n  if (Shopify &amp;&amp; Shopify.designMode) {\n    document.addEventListener('shopify:section:load', () => {\n      initSliders();\n    });\n  }\n});\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Add the Section to the Theme Editor<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now head to the theme editor, <strong>Online stores &gt; Themes &gt; Customize<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From here, click on the <strong>Add section. <\/strong>Search and select the section we created.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"288\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/add-section-10.png\" alt=\"click add section and select before &amp; after slider section.\" class=\"wp-image-22521\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/add-section-10.png 550w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/add-section-10-250x131.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/add-section-10-403x211.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/add-section-10-120x63.png 120w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Then you can add images for the before and after field from here, and you get minimal options to edit.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"358\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/edit-section-7-700x358.png\" alt=\"edit setting and select images for a Shopify before and after slider. \" class=\"wp-image-22523\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/edit-section-7-700x358.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/edit-section-7-250x128.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/edit-section-7-768x393.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/edit-section-7-403x206.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/edit-section-7-964x493.png 964w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/edit-section-7-120x61.png 120w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/edit-section-7.png 1366w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019re done making changes, <strong>save <\/strong>them. It will look basic and unorganized.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Pick the Shopify App?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Creating your store with MIT Pro Sections isn&#8217;t just about adding features; it&#8217;s about smart, fast design, without getting bogged down in manual coding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And it goes far beyond a simple before\/after slider. With more than 130 free and paid sections, such as banners, testimonials, FAQs, and more.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This app will let you,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Browse a wide selection of ready-made, beautifully designed sections for any storefront<\/li>\n\n\n\n<li>Start free with basic templates or unlock premium options for advanced customization<\/li>\n\n\n\n<li>Add, edit, or replace sections instantly with zero technical skills required<\/li>\n\n\n\n<li>Keep your page speed optimized while working seamlessly across all Shopify themes<\/li>\n\n\n\n<li>Customize freely with no hidden restrictions or locked features<\/li>\n\n\n\n<li>Continuously refresh your store\u2019s design as your business grows<\/li>\n\n\n\n<li>Install for free, with fair and transparent pricing tailored for all business sizes<\/li>\n\n\n\n<li>Try it risk-free with a free trial to ensure it fits perfectly with your theme<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Above are enough reasons to choose our app and start transforming your store, from every minute detail to the major element, everything is under your control.<\/p>\n\n\n<div class=\"meetanshi-cta\">\r\n<div class=\"cta-content-wrapper\">\r\n<span>130+ Shopify Sections<\/span>\r\n<p>Your all-in-one solution to create a professional Shopify store<\/p>\r\n<a href=\"https:\/\/apps.shopify.com\/mit-custom-sections\" target=\"_blank\" class=\"btn-primary\" rel=\"noopener\">Install App Now<\/a>\r\n<\/div>\r\n<div class=\"cta-image-new\">\r\n<img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/11\/mit-sections-pro.png\" alt=\"MIT Sections Pro\">\r\n<\/div>\r\n<\/div>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shopify doesn\u2019t include a built-in before-and-after image slider, but adding one is simple.&nbsp; This guide will show you the easiest ways to add a Shopify&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[787],"tags":[],"class_list":["post-22518","post","type-post","status-publish","format-standard","hentry","category-shopify"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/22518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=22518"}],"version-history":[{"count":6,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/22518\/revisions"}],"predecessor-version":[{"id":23828,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/22518\/revisions\/23828"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=22518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=22518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=22518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}