Page Builder

{{ banners }}

Elements of marketing banners at page’s top and/or bottom.

Examples

<!-- templates\components\common\header.html -->

{{#if banners.top}}
<div class="banners" data-banner-location="top">
    {{#each (limit banners.top_metadata 1)}}
    <div class="banner" data-event-type="promotion" data-entity-id="{{this.id}}" data-name="{{this.banner-name}}" data-position="{{this.location}}" data-banner-id="{{this.banner-name}}">
        <div data-event-type="promotion-click">
            {{{this.content}}}
        </div>
    </div>
    {{/each}}
</div>
{{/if}}

Schemas

object
  1. Elements of marketing banners at page’s top and/or bottom.
bottom
array[string]

Array of HTML content/strings, for custom bottom-banner content; banners are populated from the BigCommerce control panel

top
array[string]

Array of HTML content/strings, for custom top-banner content; banners are populated from the BigCommerce control panel