Skip to main content

Add Custom Code to Your Website

Learn how to add custom HTML, CSS, or embed third-party widgets into your Durable website

Written by Stu
Updated over 2 weeks ago

Note: Custom Code is available on our Growth plan.

Add 3rd party services and tools to your site by embedding code directly into your website’s header or footer.

Note: Adding 'Integrations' -> Custom Code, applies changes to every page on your website.

It is not currently possible to apply the custom code to only specific pages.


How to add custom code in your Durable website editor:

  1. Access the Custom code section of your website

    • From your dashboard, navigate Website > Website Settings > Integrations > Custom Code > Add a custom script or code to your website in the Durable dashboard.

      -

      -


  2. Add your custom code

    • Name your Custom code, for easy identification

    • Select the 'Placement'
      - 'Head' - Places Code at the end of the </head> tag
      - 'Body' - Places Code at the end of the </body> tag

    • Add your custom code to the 'Code' section


  3. Save Your Changes

    • Click Save to apply your custom code site-wide.

The added custom code will then be listed in your Custom Code section:

---

How to Disable your Custom Code:

  • Navigate Website > Website Settings > Integrations > Custom Code > Add a custom script or code to your website.

  • On the Custom code you wish to Disable, click the settings icon and then use the option to 'Disable'

This will prevent the custom code running on the website, immediately.

---

How to Delete your Custom Code:

  • Navigate Website > Website Settings > Integrations > Custom Code > Add a custom script or code to your website.

  • On the Custom code you wish to Delete, click the settings icon and then use the option to 'Delete'

This will remove the custom code from your site, immediately.

---

Note: Please ensure your provided code is from a trusted source and is tested to work.

If the code does not result in the expected result, please check and confirm the code with its creator.

If the code is tested and still results in any unexpected behaviour, or issues, please reach out to our support team.

Did this answer your question?