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

Use Custom Code under Website > Website Settings > Integrations when a script or snippet should run on every page of your site (for example in the site header or footer).

To add custom HTML, CSS, or JavaScript on one page or section only, use an Embed section in the website editor instead. See Add and Customize an Embed Section with Custom Code.

Add custom code

  1. Access the Custom Code section

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

  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:



Disable custom code

  • Open the Custom Code section the same way as above.

  • On the Custom Code you wish to disable, click the settings icon and then select Disable.


This will prevent the custom code from running on your website immediately.

Delete custom code

  • Open the Custom Code section the same way as above.

  • On the Custom Code you wish to delete, click the settings icon and then select Delete.


This will remove the custom code from your site immediately.

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.


What's next

Now that you know how to manage custom code, explore other ways to enhance your website's functionality.

Did this answer your question?