Add a new block to the Footer - Dawn theme used

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.

Summarized with AI on January 10. AI used: gpt-5.

Hello @KetanKumar

https://rivivonetdawn.myshopify.com/

this is the password iwahsh

This is a test site not the one where the piece of code will go.

I would like to be able to insert an html block or, even better, a liquid block (as is already present in this topic in the sections), because I can insert useful elements for the management of the site. Clickable images etc.

Thanks

1 Like