We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Can theme style presets replace current settings in code?

Can theme style presets replace current settings in code?

LMiller
Shopify Partner
18 0 6

Hey everyone, hopefully this should be a simple & easy question to answer. I have a script that uses different custom stylesheet files based on the subdomain a customer is currently in. I have 4 Theme style presets I have coded that I want to apply and want to know if it's possible in the following line of code to reference these presets instead of the current settings:

{% assign font_col_heads = settings.font_col_heads %}

The settings_data.json that this is getting it's information is as follows:

LMiller_0-1708103688241.png

Does settings.Transpac.font_col_heads do this? Or settings[Transpac].font_col_heads? What is the point of the presets if it just overwrites the theme style with the current settings?

 

Replies 0 (0)