Custom code
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.
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 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.
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.
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.