How to add custom HTML, CSS or JavaScript codes on specific pages or across your site?

There can be times when you may need to add custom codes to your site pages, or across the site. These could be custom codes such as adding custom event tracking codes for Google Analytics, adding social sharing buttons, or any other code that you may need. This article will show you how to do that with ease.

CAUTION: This is an advanced feature, and should only be used when sure of the impact of the code being added to the site. Please use it on your Knorish Site with caution, as our customer support team is unable to assist with issues related to custom codes added.

Adding a custom code across your site

HubSpot Video
  • Log in to your site and access the dashboard
  • Under Website Builder, Click on Custom Code.
  • Under Custom Code, you have four options: Header Code, Body End Code, Signup Tracking and Purchase Tracking.
  • Based on the requirement, you may need to add the code.
  • Select the appropriate section, and in a new line, paste the code in that section.
  • Click Save.

Adding a custom code on specific page

HubSpot Video

In case you don't wish to add the code across the site and only need it on a specific page, this can also be done. Simply follow the steps below.

  • Log in to your site and access the dashboard
  • Under Website Builder, Click on Pages.
  • In the list of the pages, click on the Header Code Section or the Footer Code in New Page section. You can also edit existing page to add code.
  • Paste the code
  • Click on Save

Once done, you would see the requisite code added. To check for the addition of the code, open the specific page in a new tab, right-click on the mouse and click on inspect and the code would be added in the header or the footer section as needed.

Note: This method should not be used for site-wide Pixel and Google Analytics or Tag Manager integration. For those integrations, please visit: Integrations