Skip to main content

HTML Section

This section adds your own HTML to a page, for layouts that Markdown can't create.

It's the only place on a page where HTML works. Everywhere else, HTML shows as typed.

When to Use​

Try a Markdown Section first. Markdown is easier to edit, and it can embed maps, videos and PDFs. See Embedding maps, videos and PDFs.

Use an HTML section when you need HTML that Markdown can't write, like a layout of images and text side by side.

Data Structure​

Position
Where the section appears in the order of all page sections.

Class
The class name of the section element for styling purposes.

HTML
The HTML for the section. Text, headings, lists, tables, links, images, video and <iframe> embeds work.

Scripts aren't allowed. A <script> tag, an attribute like onclick, or a javascript: link can't be saved, and your webstore removes them, along with <style> tags and forms. Put CSS in Styles (CSS) instead.

Styles (CSS)
CSS for the section. These styles apply to the whole page, so start each selector with the section's class, like .our-team img { ... }, to style only this section.

Preview​

The Dashboard previews your HTML in a separate frame that doesn't run scripts. Maps and video players that need scripts show blank in the preview, but they work on your webstore after you publish.

Need a script?​

Your webstore doesn't run scripts from an HTML section. Depending on what the script is for:

  • Tracking, chat or marketing tags: add them through Google Tag Manager, which can load any script on every page. They follow your webstore's visitor consent rules, so they don't load for visitors who opt out.
  • A widget with an iframe embed: most booking, scheduling, map, video, 3D tour and review widgets offer one next to their script snippet. Paste the <iframe> into this section.
  • A widget that only comes as a script: put the snippet in its own HTML file, upload it as a document on the page's Assets tab, and embed the document's address with an <iframe>. Give the iframe a fixed height, like style="width:100%; height:600px; border:0", because your webstore can't resize it to fit. Inside the iframe the widget can run, open popups and submit forms, but it can't redirect your webstore's tab.
  • Anything that has to be part of the page itself: contact us about a Component Section.