Welcome to the Liquify Community

Updated 2 weeks ago

Global theme settings?

Is there anywhere where we can add global theme settings for clients like favicon, fonts, colors and such?
j
5 comments
Hi @Levi Benton, we are currently working on a li-settings:global wrhre you can add json for every setting you need.

For now you can add this json in the section schema file. Here is an example for favicons:
// settings_schema.json [ { "name": "General Settings", "settings": [ { "type": "image_picker", "id": "favicon", "label": "Favicon Image", "info": "Will be scaled down to 32x32px" }, { "type": "image_picker", "id": "apple_touch_icon", "label": "Apple touch icon image", "info": "Will be scaled down to 120x120px" } ] } ]
it needs to be placed in settings_schema.liquid
you can access all the general settings by settings.SETTINGS-ID as a liquid object: {{ settings.favicon | image_url: '32x32' }}
but the favicon code gets already implemented during conversion. So you only need to set the code into the settings schema.
Hi @Levi Benton πŸ™‚ does that help?
Add a reply
Sign up and join the conversation on Discord