Tailor Starter Documentation
Get ThemeOctober CMS DocsGitHub
  • Getting Started
  • Pages
    • Blocks
      • Hero Section
      • Section
        • Advanced Tab
        • Content Column
        • Buttons Column
        • Image Column
        • Posts Column
        • Events Column
        • Products Column
        • FAQs Column
        • Form Column
        • Search Column
      • Posts Section
      • Events Section
      • Products Section
      • Form Section
      • FAQs Section
      • Search Section
      • Creating Blocks
      • Editing Blocks
  • Menus
    • Main Menu
    • Secondary Menu
    • Social Menu
  • Blog
    • Posts
    • Authors
    • Categories
  • Events
  • Shop
    • Products
    • Product Categories
    • Product Properties
    • Orders
    • Cart
  • FAQs
  • Forms
    • Submissions
  • Search
  • Icons
  • Settings
  • Editing Blueprint Files
  • Seed Data
Powered by GitBook
On this page
  • Section Column Blocks
  • Files Used
Edit on GitHub
  1. Pages
  2. Blocks

Section

PreviousHero SectionNextAdvanced Tab

Last updated 2 years ago

The section Block generates an HTML section element with various customizations based on the values of the section object passed to the template. This section generates Bootstrap Columns and be adjusted based on the column section of each block

The general idea behind Section blocks is that you can add any content in here, but follow Semantic HTML.

The section's tag name is either section or the section.html_tag in the fields if you have it set. The Advanced Tab fields also add an ID attribute and CSS Classes that you specify. You can also adjust the Bootstrap container type as well in this tab.

You can set a background to a section by going under the Background Image Tab.

You can also adjust the spacing before and after using the switches from section.disable_top_spacing, and section.disable_bottom_spacing respectfully.

The section element contains a row element with a class attribute set to row-cols-lg- followed by the length of section.columns and is dynamically set by the number of column blocks, as well as additional classes to set the row's direction on mobile devices based on the value of section.reverse_columns_on_mobile.

For each column block in section.columns, the template generates a Bootstrap Column and adds spacing unless column.disable_bottom_spacing is true, as well as additional classes based on the values of column.position, and column.width. The Bootstrap Column will contain content that depends on which column block you add.

Section Column Blocks

You can view more about each column block by browsing each block below:

  • Block

  • Block

  • Block

  • Block

  • Block

  • Block

  • Block

Files Used

The following files are used to display this content

which is used in the blueprint file

file

file

partial file

Advanced Tab
Content Column
Buttons Column
Image Column
Posts Column
Events Column
Products Column
Form Column
section.yaml
builder.yaml
general_options/advanced_fields.yaml
general_options/section_header.yaml
builder/sections/section.htm