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 third-party custom contact form for taking payments on your site.
This article will cover three different methods of adding custom code to your site.
The HTML widget is the easiest method of adding custom code to your site.
In the left panel, click Widgets, and drag the HTML widget into a column or row into your site and paste in your code.
After adding custom code with the HTML widget,click the widget in your editor to edit your code.
Sometimes, however, due to the nature of the code it is not possible to do this as easily. In this case, you can select the container to see if you can edit the entire container (which will include the code).
To edit the code of anything in your site:
Note
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.
You can view the code of your entire site within the editor. To access the code, click </> at the top right of your editor.
The code for your site is broken into sections to allow fine tuning over your site.
For more information on developer mode, see Developer Mode.
If you broke your site with custom code, you can fix it by:
For a full guide on troubleshooting custom code, see How Can I Troubleshoot Custom Code?
Some guidelines are:
For more information, see Custom Code Guidelines.
back to Custom Code