Using HTML and Custom Code

Overview

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.

Steps

  1. You can type HTML in the widget in the search bar to find the HTML widgetd1_html_css_editor_1_1-1.png

  2. Drag the HTML widget into a column.d1_html_css_editor_1_1-2.png
  3. Insert your code in the menu that pops up
    d1_html_css_editor_1_1-3.png

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).

d1_html_css_editor_1_1-4.png

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.

d1_html_css_editor_1_1-5.png

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.

d1_html_css_editor_1_1-6.png

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.

Developer mode

To view the code of your entire site within the editor click the </> icon at the top right of your screen.

d1_html_css_editor_1_1-7.png

The code for your site is broken into sections to allow fine tuning.

d1_html_css_editor_1_1-8.png

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.