Custom code in head and body: global or per page
Learn how to add custom code and scripts site-wide or to specific pages.
Site and Page custom code sections only support HTML, CSS, and JS. Server-side languages like PHP, Python, Ruby, or Perl can't be used.
Note: Custom code is an advanced modification that’s not included in the Ycode support. If we’re troubleshooting issues with your web project, we might ask you to remove it so we can determine if the custom code is the root of the issue.
Adding custom code globally
Click on Settings (gear icon) in the left sidebar.
Go to General settings and scroll to Custom code.
Add valid HTML or scripts into the header or/and body fields.
After adding your code, click Save.
Custom code is now injected into the
tag or/and the tag on every website page.Adding custom code per page
Click on Pages (page icon) in the left sidebar.
Right-click on page and choose "Page settings".
Click on "Custom code" tab.
Add valid HTML or scripts into the header or/and body fields.
After adding your code, click Save.