Skip to content
Log in

Style - Liquid Object Reference

On this page

Description

The Style object contains information about a block of Stylesheet code.

:::note This object supports custom data via the data attribute. :::

Backed by

This drop renders the s_c__Style_Block__c Salesforce object. A theme writes it as style.

Liquid attribute Salesforce field
media s_c__Media__c
position s_c__Position__c
url s_c__Url__c

Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.

Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from style.data. See custom data fields in Liquid.

Attributes

Attribute Type Description
active? Boolean Returns true if the Style is active
content String Returns the content of the Style
global? Boolean Returns true if the Style is global
id String Returns the Style’s unique id
media String Returns the Media attribute for the Style
position Number Returns the position of the Style
url String Returns a url for an external Style

Available on

Was this article helpful?

Was this article helpful?