Skip to main content

Add custom code to Pages

Add custom CSS or Javascript to one or all pages of a website.

Add custom code to one page, a block on a page, or every page of your website to embed widgets, load fonts, add analytics, or change how your pages look.

Warning: Be careful when adding custom code to your site. If you're adding code from a third party, make sure you trust them. Their custom code might cause problems on your site.

Add custom code to a single page

Add code in page Settings

  1. From the Dashboard, open the Website tab.

  2. Locate the Website Page or Landing Page you want to edit.

  3. To the right of the page title, click Customize.

  4. In the page builder, click the Settings tab.

    Custom Code1
  5. Click the Custom Code section.

  6. Add your Custom CSS or Custom JavaScript in the panel.

    Custom Code2
  7. Click Save.

Note: Do not include <style> or <script> tags in the Custom CSS or Custom JavaScript sections within page Settings.

Add code in a Custom Code block

Adding custom code in a block is useful for embedding content on your page, such as a calendar booking widget.

  1. From the Dashboard, open the Website tab.

  2. Locate the Website Page or Landing Page you want to edit, and click its Page Title.

  3. In the page builder, open a Section.

  4. Click Add block.

    Add Block
  5. Click Custom Code.

    Add Block2
  6. Add your custom CSS or JavaScript in the Code field.

  7. Set the block's Background, Layout, Animations, and Time reveal options as needed.

  8. Click Save.

Note: In a Custom Code block, use <style> (for CSS) and <script> (for JavaScript) tags for your code to work.

Add code to a Checkout page

  1. From the Dashboard, click the Sales tab, then Pricing.

  2. Click the Offer Title of the Offer whose Checkout page you want to edit.

  3. Click Edit checkout at the top of the page.

  4. Click the Settings tab.

  5. Click the Custom Code section.

  6. Add your Custom CSS or Custom JavaScript in the panel.

  7. Click Save.

Add code to an Upsell page

  1. From the Dashboard, click the Sales tab, then Pricing.

  2. Click the Upsells tab.

  3. Click the Upsell you want to edit.

  4. Click Customize.

  5. Click the Settings tab.

  6. Click the Custom Code section.

  7. Add your Custom CSS or Custom JavaScript in the panel.

  8. Click Save.
    ​


Add custom code to all pages

Custom code on all pages is useful for adding a cookie disclaimer, custom fonts, analytics, and more.

  1. From the Dashboard, open Settings.

  2. Under Site settings, click Site details.

  3. Under Page scripts, enter your custom code in the Header Page Scripts field.

  4. Click Save.

Note: Code in Header Page Scripts goes in the <head> tag of every page except offer checkout pages and upsell pages. To track checkout pages, see Add JavaScript tracking code to Checkout pages.

Did this answer your question?