01 Code

2021-09-30 17:51

Array() no author 77473

Tutorial, Create your website, Utility,

Script   If you need to insert a JavaScript, HTML and CSS code, within a specific section of the page where you are working, you can do

Script


If you need to insert JavaScript, HTML and CSS code within a specific section of the page where you are working, you can do so through the Script component.
This component is intended for programmers and users with experience in the IT field and is one of the exclusive features of the Professional version.


You can insert appearance customization codes, tracking scripts (like the Facebook Pixel), banner ads, external services and much more to make your site unique.


1. Click on the Elements bar
2. Click on Utilities
3. Click on Codes
4. Drag the Script component to the workspace
5. Click on the Script component
6. Click Edit Script
7. Click on Switch widget / html


You will have access to a programming panel where you can write your code or paste one that has been provided to you, such as a Google AdSense banner ad.
Make sure you have entered all tags and variables correctly and that there are no compilation errors.
By clicking again on the eye icon, the system will execute the inserted script.


You can change the application type, between Script mode and HTML mode.
The Script mode allows you to process the code completely independent of the site, in order to avoid any interference with the components already present. This mode then generates an iframe.
HTML mode allows you to process code that intersects with everything that is p
present on the page, intervening both in the editor and in the online display of the site.
This mode is not recommended for those who are not used to programming as it could affect the code of the components present on the site, causing them to malfunction.


Good to know: the Script component operates exclusively on the page in which it was inserted, while both Head and Body affect the entire site and not a single page.