Custom code

How to add custom code to your Airsquare website

Clare Wade avatar
Written by Clare Wade
Updated over a week ago

You can add your own custom code elements to Airsquare. Please bear in mind that we update things regularly, which may cause your code to break; we can't provide support for any custom code that you add.

How do I add custom code to my website?

This is an advanced feature and you should understand what you're doing. Any malicious activity will result in your website being immediately deleted.

To add custom code into the <HEAD> or <BODY> tags:

  1. Go to Website > Settings > Custom code.

  2. Enter the code snippets into the appropriate places.

  3. Click Update to save.

If you want to add a code snippet directly into the page content, use a custom code widget.

How do I override the styles on my website?

If you know how to use CSS you can override any styles on your website:

  1. Go to Website > Settings > Custom code.

  2. Enter Custom CSS.

  3. Click Update to save.

The Custom CSS is included last, so you can override any of the previous styles.

How do I change the page title format?

You can edit the he format of page titles when displayed in the browser's title bar and search engine listings. When you edit these, [page_title] and [organisation_title] are swapped out and replaced with the correct values when displayed.

  1. Go to Website > Settings > Custom code.

  2. Scroll to the heading Page title format.

  3. Enter data as applicable.

  4. Click Update to save.

How do I set a 404 page?

  1. Go to Website > Settings > Custom code.

  2. Scroll to the heading 404 Page.

  3. Choose a 404 page from the drop-down menu.

  4. Click Update to save.

Did this answer your question?