column

Table of contents

The column object is accessible in the columns/_column.plate theme file, if it’s rendered by the {% render_content %} tag inside the {% content_for row %} block. Read more on how content_for works here.

column.elements

Returns array of elements that have the column object as parent.

{{ column.elements }}

column.viewport_options

Returns an object with the column’s viewport options. De available options are:

  • grid: returns the column’s grid size. Usually 1 to 12.
  • relative_width: returns the column’s relative width (grid / columns count). E.g. 0.25 when the grid size is 3.
  • avg_image_width: returns the column’s average image width for every viewport, or for a specific viewport.
{{ column.viewport_options.avg_image_width }}
Input
[360, 354, 466, 570]
Output
{{ column.viewport_options.xs.avg_image_width }}
{{ column.viewport_options.md.avg_image_width }}
Input
360
466
Output

Need help?

Do you have any question which is not answered in this knowledge base? Contact us. We are here to help you.