Creating Custom Sections and Blocks in Dawn Theme

Dawn theme er ekta boro power holo – eita full section-based and Liquid 2.0 support kore. Mane, ekta completely new section banate parba jeta client drag & drop kore use korte parbe.

Steps to Create Custom Section:

  • Go to: Online Store → Edit Code
  • Sections folder e new file create → custom-banner.liquid
  • Use this base code:

{% schema %}
{
  "name": "Custom Banner",
  "settings": [
    {
      "type": "text",
      "id": "banner_text",
      "label": "Banner Text"
    }
  ]
}
{% endschema %}

<h2>{{ section.settings.banner_text }}</h2>

  • Save → Go to Theme Customizer → Add Section → "Custom Banner" dekhbe


TipClient jokhon bolbe "Hero section er niche ekta trust badge section chai", tumi easily ekta custom section baniye add korte parba.



Share On :
>