The site builder supports HTML, CSS, and Javascript; and there are a few ways in which you can add code to your website.
Site scripts
Site scripts are scripts that are intended to be used across an entire website. They are typically included in the header or footer of a website and are used to provide common functionality, such as analytics tracking. Site scripts are usually written in JavaScript and can be accessed by any page on the website.
To access the Site scripts area:
- Click on the pages panel
- Click on Site Scripts
- Choose the Head scripts or Body scripts tab
- Paste the code
- Save changes
Page scripts
Page scripts are scripts that are specific to a particular page on a website. They are typically included in the <head> or <body> section of an HTML document and are used to provide functionality that is unique to that page, such as interactive forms or animations. Page scripts are not accessible by other pages on the website.
To access the Page scripts area:
- Click on the pages panel
- Click on the ellipsis icon of the page to which you are going to add the code
- Choose Edit Page Scripts
- Choose the Head scripts or Body scripts tab
- Paste the code
- Save changes
Embed widget
Embed codes are commonly used for a variety of purposes, such as embedding YouTube videos, social media posts, maps, and contact forms on a website. By using an embed code, website owners can easily add interactive and engaging content to their website without having to create it themselves or host it on their own server.
To add code inside an Embed widget:
- Click on Add content in the top bar inside the editor
- Choose Add widget
- Look for the widget called Embed
- Drag it to the page
- Click on it
- Click on Edit code
- Paste your code
- Save changes
Comments
0 comments
Article is closed for comments.