Shopify themes, liquid, logos, and UX
If I include a section in my theme template via liquid tags as follows:
{% section 'header' %}
The resulting output wraps the code contained in the header section with a div:
<div id="shopify-section-header" class="shopify-section">
<!- Content in header.liquid ->
</div>
I'd really like to remove the wrapper div for a few reasons - styling, semantic markup, removing excess markup for page size, etc. - but I haven't found any way in the docs to filter this out. Any suggestions?
Solved! Go to the solution
This is an accepted solution.
Ended up finding the relevant info:
https://shopify.dev/themes/architecture/sections/section-schema#tag
Tag attribute allows modification of the container element.
anyone?
This is an accepted solution.
Ended up finding the relevant info:
https://shopify.dev/themes/architecture/sections/section-schema#tag
Tag attribute allows modification of the container element.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025