New: the WhatsApp AI Agent now supports CSV contact import. Read the guide

Add custom CSS, head code or scripts

In the theme editor, click the gear icon to open Global Settings → Custom Code: paste CSS under Store CSS (all pages) or Page CSS (this page only), tags for the head under Custom code within head tag, and scripts under Custom Javascript code. For markup inside a page, use the Code Html block.

Steps

  1. Open Online Store → Theme Settings and select the page in Select Page. Click the gear icon for Global Settings and expand Custom Code.
  2. Custom CSS: choose the Store CSS tab ("Store CSS applies to all store pages.") or Page CSS ("Page CSS affects only this page."). Paste your CSS code only, without <style> tags.
  3. Custom code within head tag: paste the code with its complete tags (for example a full <script> or <meta> tag). This box is per page.
  4. Custom Javascript code: paste the full code without <script> tags; these scripts run after the page content loads. Also per page.
  5. Click Save. Custom code is saved together with the page, per language.
  6. To place HTML inside the page layout, open Add Blocks, drag a Code Html block into position and edit its Content.
  7. On a landing page the same Custom Code panel exists, but CSS applies to that page only (there is no Store CSS tab).

Common problems

Related

Plain-text / Markdown version