This is the settings_data.json, and I want to access the field current->sections->announcement-bar->settings->height. I found I can access ‘site_desc’ field with ‘settings.site_desc’, but can not access announcement-bar height with ‘settings.sections.announcement-bar.settings.height’. Is is possible to access this field with liquid ? Thanks for your help !!!
Hi,
I hope you are doing good
No, you can’t access section settings like this
But you can access whole section by using sections api like your-url?sections=announcement-bar
and in this way you can parse whole section using javascript and use its settings
You can use fetch api to access whole HTML and parse it in custom javascript