BrainSpate Logo
  • Services
    • Services
    • Salesforce iconSalesforce Development
    • BigCommerce iconBigCommerce Development
    Smart Commerce Solutions
    • eCommerce Development iconeCommerce Development
    • B2B eCommerce iconB2B eCommerce
    • eCommerce Website Design iconeCommerce Website Design
    • B2C eCommerce iconB2C eCommerce
    • eCommerce Marketplace iconeCommerce Marketplace
    • Headless Commerce iconHeadless Commerce
    • eCommerce Implementation iconeCommerce Implementation
    • eCommerce Consulting iconeCommerce Consulting
    • eCommerce Migration iconeCommerce Migration
    • eCommerce Management iconWhite Label eCommerce Development
    • eCommerce Maintenance iconeCommerce Maintenance
    • eCommerce Website Packages iconeCommerce Website Packages
    • eCommerce Portal DevelopmenteCommerce Portal Development
    • eCommerce IntegrationeCommerce Integration
    End-to-End Shopify Development
    • Shopify Development iconCustom Shopify Development
    • Shopify Plus Development iconShopify Plus Development
    • Shopify Integration iconShopify Integration
    • Shopify Migration iconShopify Migration
    • Shopify Theme Development iconShopify Theme Development
    • Shopify App Development iconShopify App Development
    • Shopify Speed Optimization iconShopify Speed Optimization
    • Shopify Maintenance iconShopify Maintenance
    • headless shopify developmentHeadless Shopify Development
    • shopify consulting menu iconShopify Consulting Services
    • Shopify Development iconShopify Development India
    • shopify label iconWhite Label Shopify Development
    Migrate Safer, Faster
    • Magento to Shopify MigrationMagento to Shopify Migration
    • PrestaShop to Shopify MigrationPrestaShop to Shopify Migration
    • WooCommerce to Shopify MigrationWooCommerce to Shopify Migration
    • Volusion to Shopify MigrationVolusion to Shopify Migration
    • BigCommerce to Shopify MigrationBigCommerce to Shopify Migration
    • WordPress to Shopify MigrationWordPress to Shopify Migration
    • OpenCart to Shopify MigrationOpenCart to Shopify Migration
    • Magento to WooCommerce MigrationMagento to WooCommerce Migration
    • Shopify to WooCommerce MigrationShopify to WooCommerce Migration
    Unify Your Commerce
    • Shopify NetSuite Integration iconShopify NetSuite Integration
    • Shopify Amazon Integration iconShopify Amazon Integration
    • Shopify QuickBooks Integration iconShopify QuickBooks Integration
    • Shopify Salesforce Integration iconShopify Salesforce Integration
    • Shopify HubSpot Integration iconShopify HubSpot Integration
    • Integration iconShopify Zendesk Integration
    • shopify ERP integrationShopify ERP Integration
    • Shopify Etsy integrationShopify Etsy Integration
    • shopify klaviyo integrationShopify Klaviyo Integration
    Smart Commerce Solutions
    • WooCommerce Development iconWooCommerce Development
    • WooCommerce Migration iconWooCommerce Migration
    • WooCommerce Speed Optimization iconWooCommerce Speed Optimization
    • Support and Maintenance iconWooCommerce Maintenance
    • shop iconWooCommerce Theme Development
    Future-Ready Magento Commerce
    • Magento Development iconMagento Development
    • Magento Migration iconMagento Migration
    • Magento Integration iconMagento Integration
    • Magento Upgrade iconMagento Upgrade
    Phone
    Mobile+1 803 310 2526
    Email
    Email Ussales@brainspate.com
  • Hire Developers
    Hire eCommerce Developers
    • Shopify iconHire Shopify Developers
    • Magento iconHire Magento Developers
    • WooCommerce iconHire WooCommerce Developers
    Phone
    Mobile+1 803 310 2526
    Email
    Email Ussales@brainspate.com
  • Industries
    Industries
    • Fashion iconFashion
    • Food iconFood
    • Healthcare iconHealthcare
    • Automotive iconAutomotive
    • Electronics iconElectronics
    • Home Furniture iconHome Furniture
    • Sports Fitness iconSports Fitness
    • Jewelry iconJewelry
    • E Learning iconE-Learning
    Phone
    Mobile+1 803 310 2526
    Email
    Email Ussales@brainspate.com
  • Portfolio
  • About Us
    About Us
    • Testimonials iconTestimonials
    • Infrastructure iconInfrastructure
    • Culture Values iconCulture & Values
    • Career iconCareer
    • Life at Brainspate iconLife At BrainSpate
    • Blog iconBlog
    Phone
    Mobile+1 803 310 2526
    Email
    Email Ussales@brainspate.com
  • Contact Us
  • Shopify

Add Sections to Templates in Shopify: Step-by-step Guide

Ankur Shah
Ankur Shah
Shopify Solutions Architect, BrainSpate
Last Updated On October 30, 20267 min read

Quick Summary

  • Shopify allows you to build and manage your online store, while sections let you create reusable components for your website layout.
  • To add a section, create a new .liquid file in the Shopify admin, define its content, and link it to a JSON template for your page.
  • You can customize section content, like images and text, directly through the Shopify theme editor for a tailored store experience.
  • Use advanced features like conditional logic and dynamic data to make your sections even more customizable and interactive.
Summarize with AI:
  • ChatGPT
  • Perplexity
  • Claude.ai
  • Grok
  • Google AI Mode

Adding sections to templates is the core of modern theme customization. Sections provide modular components that store owners can modify directly in the theme customizer without writing code. Our team provides professional Shopify theme development services to engineer flexible sections that look sharp and render quickly.

In this guide, we show you how developers build Liquid sections and attach them to JSON templates step by step.

What are Shopify Sections?

Sections are modular components that contain configurable schema settings for the visual theme editor. While adding snippets in Shopify is ideal for static micro-code fragments, sections allow non-technical store managers to update copy, images, and layout blocks visually.

Sections are stored in a theme’s sections folder and can be added to any template, such as the homepage, product pages, or custom pages. Their flexibility makes them a key feature for creating responsive and interactive store designs.

Types of Sections in Shopify:

  1. Main Page Sections: These sections form the core of certain pages, like product or collection pages. They typically contain key components such as product information, pricing, and images.
  2. Modular Sections: These flexible components can be placed across any page, including testimonials, featured collections, and newsletter blocks. Leveraging creative eCommerce website design services ensures your modular sections follow strict visual hierarchy and brand typography.

How to Add Sections to Templates in Shopify

If you want to add a custom section to your Shopify store, such as a banner or special announcement, you can easily do this by creating a new section file.

Creating a Section File

Start by creating a section file.

Navigate to the Shopify Admin:

  • Go to Online Store > Themes
  • Click on Actions > Edit Code

Add a new section:

  • In the left-hand menu, locate the Sections folder.
  • Click Add a new section.
  • Provide a name for your section (e.g., custom-banner)

This creates a new file named custom-banner.liquid in the sections folder.

Defining the Section Content

Open the newly created custom-banner.liquid file and add the following:

{% schema %}
{
 "name": "Custom Banner",
 "settings": [
   {
     "type": "text",
     "id": "heading",
     "label": "Banner Heading",
     "default": "Welcome to Our Store!"
   },
   {
     "type": "image_picker",
     "id": "background_image",
     "label": "Background Image"
   },
   {
     "type": "text",
     "id": "subheading",
     "label": "Subheading Text",
     "default": "Shop the latest trends"
   }
 ]
}
{% endschema %}

<div class="custom-banner" style="background-image: url('{{ section.settings.background_image | file_url }}');">
 <h1>{{ section.settings.heading }}</h1>
 <h3>{{ section.settings.subheading }}</h3>
</div>
<style>
 .custom-banner {
   text-align: center;
   padding: 50px;
   color: white;
   background-size: cover;
   background-position: center;
 }
</style>

Now that you’ve defined the section, the next step is to add the section to a JSON template.

Adding the Section to a JSON Template

Online Store 2.0 defines page hierarchies using JSON template arrays. When setting up a Shopify store without a template, you structure these JSON files to declare exactly which sections render and in what order across your pages.

Locate the relevant JSON template:

  • Go to the Templates folder.
  • Open the desired JSON file, such as index.json for the home page.

Insert the section in the sections array:

{
     "type": "custom-banner",
     "settings": {
       "heading": "Welcome to Our Store!",
       "background_image": "",
       "subheading": "Shop the latest trends"
     }
}

Example JSON structure:

{
   "sections": {
       "custom-banner": {
           "type": "custom-banner",
           "settings": {
                "heading": "Welcome to Our Store!",
                "background_image": "",
                "subheading": "Shop the latest trends"
           }
        }
    },
    "order": [
       "custom-banner"
     ]
}
Sections Array

Customizing the Section in the Shopify Admin

Follow these steps to customize the section:

  1. Go to Online Store > Themes
  2. Click Customize on your active theme
  3. Navigate to the page where the section is added
  4. Use the sidebar to adjust the section settings (e.g., text, image)
Customizing the Section in the Shopify Admin

Testing Your Section

After adding and customizing the section:

  • Preview the changes in the Shopify editor.
  • Test on multiple devices to ensure responsiveness.
  • Check for potential styling conflicts.
Testing Your Section

By using this step-by-step guide, you can quickly add and customize sections in your Shopify templates, making the shopping experience more personalized and engaging for your customers.

Get your Shopify store developed by experts. Work with our professional Shopify development company.

Advanced Tips For Adding Sections to Templates in Shopify

If you want to expand section capabilities with conditional settings, nested blocks, and dynamic metafield bindings, you can hire dedicated Shopify developers from our team. Our engineers build maintainable schema architectures that simplify merchant management.

  • Use conditional logic in the section schema to show or hide settings based on user input.
  • Incorporate dynamic sources to fetch product or collection data.
  • Use Liquid loops and filters for more advanced customization.

Example:

<ul>
 {% for product in collections.frontpage.products %}
   <li>{{ product.title }}</li>
 {% endfor %}
</ul>

By using these advanced techniques, you can unlock even more possibilities for customizing your Shopify store. 

Wrap It Up

Adding sections to templates in Shopify helps streamline the design and customization process, empowering merchants to take full control over their store’s appearance. Creating reusable, dynamic sections tailored to meet your needs or enhance your own store’s functionality can be a great option. 

With the right customization, you can create an appealing Shopify store. Don’t forget to test your changes so that your visitors don’t face any issues accessing your store. For a wider range of customizations, use conditional logic and dynamic data.

If you need expert assistance on your Shopify store, contact us today.

FAQs on Adding Sections to Templates in Shopify

1. How do I add a custom section to my Shopify store?

accordion-icon

To add a custom section, go to Online Store > Themes > Edit Code, create a new section file, and define its content using Liquid code. Then, add it to your template.

2. Can I customize the section content in Shopify?

accordion-icon

Yes, you can customize the section’s content, such as text, images, and links, directly through the Shopify Admin by using the theme customization options.

3. How can I make sections display only under certain conditions?

accordion-icon

You can use conditional logic in the section schema to show or hide settings based on user input or specific conditions, like if a product exists or a collection is selected.

Table of Content
  • What are Sections in Shopify?
  • How to Add Sections to Templates in Shopify
  • Advanced Tips For Adding Sections to Templates in Shopify
  • Wrap It Up
  • FAQs on Adding Sections to Templates in Shopify

Related Blog Posts

blog-image
user
Sahil Patel
November 06, 2026

How to Create a Shopify Staging Site for Safe Theme and App Updates

  • Technology
  • Shopify
12 min read
blog-image
user
Sahil Patel
November 06, 2026

Shopify Wholesale Channel: What Replaced It & How to Set Up Shopify B2B

  • Technology
  • Shopify
13 min read
blog-image
user
Sahil Patel
October 27, 2026

How to Create Collections in Shopify and Organize Your Product Catalog

  • Technology
  • Shopify
10 min read
BrainSpate: Your One-stop Shop for eCommerce Needs
We offer end-to-end eCommerce development services, including design, development, testing, and maintenance. We also have an in-house team to take care of your marketing and SEO.
Let’s Collaborate!
BrainSpate Logo

BrainSpate is a leading eCommerce development company that specializes in delivering high-quality online business solutions. We cater to businesses of all sizes and offer a range of eCommerce development services.

Our Expertise
  • eCommerce Website Development
  • Shopify Development
  • WooCommerce Development
  • Magento Development
  • Shopify Integration
  • Shopify Migration
Hire Developers
  • Hire eCommerce Developers
  • Hire WooCommerce Developers
  • Hire Shopify Developers
  • Hire Magento Developers
Contact Us
  • +1 803 310 2526
  • sales@brainspate.com
  • 919, City center 2 ,
    Science City Road,
    Ahmedabad - 380060, India.
  • 3520 Aria DR,
    Melbourne
    Florida, 32904, USA.
Countries We Serve
  • USA

  • Switzerland

  • Canada

  • Sweden

  • Australia

  • United Kingdom

© Copyright 2026 BrainSpate
  • All Rights Reserved
  • Privacy
  • Policies
  • Terms of Services
  • Sitemap