The editor is flexible in that it allows you to both modify existing code or add your own. Doing this allows you to extend the functionality of the platform and provides you with additional features. For example, you can add a custom calendar widget or even a 3rd party custom contact form for taking payments on your site.
This article will cover 3 different methods of adding code to your site.
The HTML widget
The HTML widget is the easiest method of adding code to your site. Simply drag the HTML widget into a column or row into your site and paste in your code.
You can type HTML in the widget in the search bar to find the HTML widget
- Drag the HTML widget into a column.
- Insert your code in the menu that pops up
Editing your custom code
After dropping in your custom code via the HTML widget, you should be able to simply click the widget in your editor to edit your code.
Sometimes, however, due to the nature of the code it isn't possible to do this as easily. In that case, you can try selecting the container to see if you can edit the entire container (which will include the code).
Editing the code inline
You can edit the code of anything in your site inline by right clicking to bring up the context menu. You can then click "Edit HTML/CSS" to get into the raw code of anything in your editor.
Clicking this will bring up the code editor for the code you're editing. Once there, it's recommended to read the documentation before you start tinkering.
A note on editing CSS
While you can edit the CSS in the developer mode, it is not recommended that you add any new selectors in this menu. You can add new rules to selectors here without a problem.
For creating new CSS selectors, please do this through developer mode.
To view the code of your entire site within the editor click the </> icon at the top right of your screen.
The code for your site is broken into sections to allow fine tuning.
For more information on developer mode, please read our full developer mode documentation here.
What are some good custom coding guidelines?
You can find recommendations and troubleshooting custom code in this article.