Dashboard
Project settings

Custom code

3min



In the Custom code section, you can add code that will be applied to the whole project, i.e. will work for all website pages. This option makes it possible to apply custom styles for the entire site, as well as to embed external scripts and libraries.

Document image


If you want to add custom code for an individual page, you can do it in the Design Editor in the Page Settings.



Custom code can be added in two ways: inside the <head> tag and before the </body> tag.

Code inside the <head> tag

Code placed in the <head> tag makes it possible to add links to external resources, metadata, and custom styles. For this, the <link>, <meta> and <style></style> tags are used.

Document image




Code before the </body> tag

Code will be placed at the very bottom before the closing <body> tag. Here you can place, for example, <script></script> tags to include JavaScript code.

Document image




Code design rules

HTML, CSS, and JavaScript-based codes can be used. Server programming languages (for example, Perl, PHP, Python, Ruby) cannot be embedded.

  • Don't forget to use closing tags. To simplify the work in the Code editor, closing tags are used automatically
  • Do not use <html>, <body>, and <head> tags in a custom code.

Custom code is not validated, so incorrect code can cause problems in the work of the published project.