Hello, could ou be more specific where to add this code in footer.liquid?
Topic summary
Goal: add a new, editable block in the Dawn theme footer to insert custom HTML/Liquid.
Key solution (works in Dawn):
- In sections/footer.liquid, within the {% schema %} blocks array, add a block of type “custom_liquid”. Optionally include a “text” setting for a heading.
- In the template logic, after {% case block.type %}, add:
{% when ‘custom_liquid’ %}
{{ block.settings.custom_liquid }}
Notes and pitfalls:
- Early attempts with an “html” block didn’t render because the output line ({{ block.settings.section_html }}) and matching ids/case were missing.
- Error “New schema is incompatible… type must be defined” occurred when the old HTML block remained in the editor. Fix: remove that block in Customize before changing the schema, then re-add the new block.
Enhancements:
- Add a heading setting above the custom liquid content for better structure.
- To add links or small graphics under headings, place the desired Liquid/HTML (e.g., links, images) directly inside the custom liquid field.
Status: resolved. Multiple users confirm the custom_liquid approach works and is quick to integrate. A new, separate query about a phone-number popup was suggested to be handled in a new thread; an example popup implementation link was shared.
Central artifacts: code edits to footer.liquid schema and case rendering are essential.