Custom HTML, Custom Liquid, Empty Space & Line
Insert custom HTML or Liquid code, control spacing with Empty Space, and add visual dividers with Line in the Avante Shopify theme.
Four sections that add no content of their own. Two of them let you drop in code the theme doesn't cover; two of them shape the space between everything else. These are what you reach for when a page is almost right and needs one adjustment that no other section offers.
Pick the one that fits your goal:
Custom HTML — a block of raw HTML: an embed, a widget, a third-party form.
Custom Liquid — the same box, with Liquid switched on: app snippets, store data, conditional content.
Empty Space — a measured gap between two sections, with separate desktop and mobile heights.
Line — a single horizontal rule across the content width.
Custom HTML, Custom Liquid and Line can be added to page templates and to the header and footer areas. Empty Space is a template section only. For settings shared across most sections (width, color scheme, paddings), see Common section settings. For the invisible scroll-target section in this same category, see Anchor Link.
Custom HTML
Shopify's section list covers a lot, but never everything — a booking widget, a map, a form from a service the theme has never heard of. Custom HTML is the escape hatch: an empty box, and whatever you paste into it renders in the flow of the page with the theme's spacing and colors around it.
In the Theme Editor this section is listed as Custom HTML. It has one field and no blocks.

Best practices
Open the page on a phone before you publish. An embed sized in fixed pixels is the most common cause of a horizontal scrollbar on mobile, and the theme can't correct it for you.
Keep one embed per section. Two widgets in a single field are far harder to reorder or remove later than two separate sections.
Don't put site-wide tracking or analytics snippets here. A section only loads on the pages it sits on, so the data will be incomplete — those belong in Shopify's Customer events settings.
If the embed brings its own background color, set Color scheme to match it, or the seam between the widget and the page will show.
Paste from a plain-text editor. Copying markup out of a word processor drags along invisible characters that break tags.
Custom Liquid
Custom Liquid is Custom HTML with the template language switched on. Same box, same width, radius, color and padding controls — but the contents are rendered by Shopify before the page reaches the browser, so they can read the product, the collection, the cart, the customer.
In the Theme Editor this section is listed as Custom Liquid and its field is labelled Liquid. The hint beneath it — "Add app snippets or other Liquid code to create advanced customizations" — describes the intended use exactly.

Best practices
Paste app snippets exactly as the app supplies them, then test. Reformatting Liquid by hand is how working snippets stop working.
Keep the logic short. A Custom Liquid section is a good place for a few lines of conditional output and a poor place for a template rewrite — nothing in it is version-controlled or reviewable.
Write down which pages carry Custom Liquid sections before a theme update. They travel with the template, so a template that gets replaced takes the snippet with it.
Prefer Custom HTML when the content is static. Liquid that doesn't read anything from the store is just HTML with a slower path to the page and no translations.
Empty Space
Sometimes two sections simply sit too close, and no combination of their own paddings fixes it without upsetting something else. Empty Space is a section whose entire job is to be a measured gap — one height on desktop, another on mobile, and a color if you want the gap to read as a band.
In the Theme Editor this section is listed as Empty space. It has no blocks and no content of its own.

Best practices
Reach for the neighbouring sections' own Top and Bottom paddings first. Empty Space earns its place when both neighbours need to keep their existing spacing and the gap between them still isn't right.
Set the mobile height every time you set a desktop one. A 64 px desktop gap left at the 24 px mobile default is usually fine; a 320 px one left there is not.
Don't build rhythm out of Empty Space sections. If a page needs the same gap in six places, change White space in Theme settings → Appearance instead — one setting beats six sections you'll have to maintain.
Use a colored Empty Space sparingly. A band of color with nothing in it works once on a page as a breath; twice, it reads as a mistake.
Line
A single rule across the content width. It does what a border would do if sections had borders — marks the end of one idea and the start of the next without spending a heading on it.
In the Theme Editor this section is listed as Line. There are no blocks, and its only controls are color and padding.

Best practices
Decide the weight once, globally. If your dividers look too heavy, change Line width in Theme settings rather than replacing the section with a styled
<hr>in Custom HTML.Keep the top and bottom paddings equal unless you intend the line to belong to the section below it. Uneven spacing around a divider reads as a layout bug even when it's deliberate.
Use a line where the two sections share a color. Where the background already changes, the color change is the divider and a rule on top of it is noise.
One divider per transition, and not after every section. A page ruled into equal boxes has no hierarchy left to read.
Related
Last updated
Was this helpful?
