In ths article we will list all of the global variables provided with the Twilight theme engine.These varibles can be used within any of the Theme's pages.
Name of the store that will be displayed in the store website.
Username of the store. This can be used by the merchant to manage the store.
Description of the store.
Example:Store for hand bags
Slogan of the store is used for marketing and it helps to identify the store. Slogan is used if feature is in twilight.json.
The api url for current store.
The fav icon url, which is shown on the page browser tab.
Store social accounts details [instagram, snapchat, twitter, youtube, facebook, pinterest, maroof, whatsapp], ex. store.social.twitter.
Allowed values:livepreview
Theme writings are left to right.
To be used in case merchant updated frontend store translations.
Salla predefined font, null when the theme doesn't have fonts
feature.
Dynamic object with values of the settings
in twilight.json ex. theme.topnav_is_dark.
Array of strings that consists of the home page components. Only valid for the Home Page index
.
Allowed values:home.slider-products-with-headerfeatured_productshome.main-linkstestimonialhome.brandshome.enhanced-square-bannershome.brandssquare_photosproducts_sliderproducts_sliderparallax_backgroundphotos_sliderfixed_bannerstore_featuresfeatured_productsphotos_sliderhome.enhanced-products-slider