Settings Variables
These variables are available on all custom twig blocks and can be used to customise your twig templates with colours and images from your settings that will update as you change within the settings.
Usage
{{ settings.site_name }}
{{ settings.primary_color }}
<a href="{{ settings.facebook_url }}">Facebook</a>Available Settings
Colors
settings.primary_color
#4F45E4
settings.background
#111827
settings.button_text_color
#ffffff
Logos
settings.logo_url
Main site logo
settings.email_logo_url
Email logo
settings.favicon_url
Site favicon
settings.wallet_icon_url
Wallet icon
Branding
settings.site_name
"My Raffle Site"
settings.footer_text
"© 2026 My Site"
settings.currency_icon
"£" or "€"
Social URLs
settings.facebook_url
settings.twitter_url
settings.instagram_url
settings.tiktok_url
settings.youtube_url
Review Scores
settings.trustpilot_score
settings.trustpilot_url
settings.facebook_review_score
Example: Dynamic Styling
Use settings to apply theme colors to your custom blocks:
Example: Social Links Section
These settings variables are available inside the Custom Twig Block, the Custom Twig Product Grid, and the Custom Twig Slider.
AI Context
For AI Assistants: This documents the RaffleX global settings variable available in all Twig templates.
Availability: Automatically available in all Twig templates. No setup required.
Settings keys (18 total):
Colors:
primary_color,background,button_text_colorLogos:
logo_url,email_logo_url,favicon_url,wallet_icon_urlBranding:
site_name,footer_text,currency_iconSocial:
facebook_url,twitter_url,instagram_url,tiktok_url,youtube_urlReviews:
trustpilot_score,trustpilot_url,facebook_review_score
Usage: Access via {{ settings.key_name }}. Use conditionals for optional values: {% if settings.facebook_url %}...{% endif %}
Last updated