Custom code for a page
Custom code added in the page settings applies only to that specific page.
If you want to add custom code for the entire website, you can do so in the Project settings in the Dashboard. For more details, see: Custom code.
You can add custom code to a page 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.
- <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.