Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Header Section Settings

Header Section Settings

luckyduckman
Shopify Partner
1 0 0

Can someone provide documentation or explain how a Header section settings work? It seems like all rules go out the window with the Header settings and I can't find any documentation explaining why. 

What happens: 
Header settings are not applied to the header object, but to the Global sections_data.json. Ok, fine. 
Accessing Header blocks in sections_data.json doesn't iterate in the same way as regular sections.

For example, say you define blocks for the header... 

// header.liquid
{{section.settings}} // renders {}
{{section.blocks}}   // renders nothing
{{settings.header}}  // renders header settings object
{% for block in settings.header.blocks %}
  {{block}} // renders block object with id
  {{block.type}} // renders NOTHING!
  {{block.settings.index}} // renders NOTHING!
{% endfor %}

 
Anyone know anything about this, or why it doesn't work like normal blocks / settings? 

Replies 0 (0)