Skip to main content

content_for_header

Dynamically returns all scripts required by Shopify.

Include the content_for_header object in your layout files between the <head> and </head> HTML tags.

You shouldn't try to modify or parse the content_for_header object because the contents are subject to change, which can change the behaviour of your code.


Note

The content_for_header object is required in theme.liquid.


Directly accessible in

  • Global
Was this section helpful?