Theme Documentation
  • Welcome
  • Getting Started
    • Liquid
    • Theme Types
    • Initial Setup
  • Core Concepts
    • Settings
    • KJB Settings ID's
    • Objects
    • Page Objects
    • Elements
    • Presets
    • Ownership
  • Building Blocks
    • Structure
    • Layouts
    • Sections
    • Section Types
    • Blocks
  • Theme Requirements
    • Required Pages
    • Theme Info
    • Powered By Branding
  • Theme Styling
    • Cornerstone CSS
    • CSS Variables
    • Custom Site Styles
Powered by GitBook
On this page
  • theme.liquid
  • Additional Layouts
  1. Building Blocks

Layouts

Layout files are very important for your theme because every other template file is rendered inside the active layout.

There is only ever one active layout on your store at any given time. The active layout changes when your online visitors begin authentication process.

theme.liquid

The theme.liquid file is the default active layout when visitors are browsing your online store and/or website. It usually renders the header content, footer content, navigation, and other global variables.

Additional Layouts

Inside the layouts folder you can add as many layouts as you like. These can be used by the templates by placing the following code at the top of the template file.


<div data-gb-custom-block data-tag="layout" data-0='minimal'></div>
PreviousStructureNextSections

Last updated 5 years ago