The HTML Element allows you to add external code to your page to integrate desired elements and other options that are not available in the application. For example, you can use this Element to embed HTML for social feeds or AdSense to add personalized functionality to your pages.

html-overview.jpg

You can insert the HTML, CSS, and JS code into the HTML Element.

IMPORTANT NOTES

  1. The JS code should not contain comments. You will see the rendered HTML code only in the Preview or after publishing your website.
  2. Nicepage Team takes no responsibility for using any external code inserted into the page and for the functionality it should provide. If the code is not working, please get in touch with the code vendor for the details, as we only allow embedding the code on the page.

Adding HTML Element To Pages

You can add the HTML Element to any Block from the Add Elements menu.

html-add.png

HTML Element Options

In the Property Panel to the right, you can edit different properties of the HTML Element.

Align, Size, and Margins

Use the Align options to set the positioning of the rendered content within the Element. The Width and Height options allow you to control the size of the Element. Margins can be set to control the spacing for the HTML Element from the other Elements.

html-alignment.png

Adding Code

You can insert the required HTML in the Code field and expand it to the screen window width by clicking the Expand icon that appears in the top-right corner on hover.

html-code.png

Other Options

You can also select default options for this Element, such as Background, Border, Transparency, Animation, and Custom CSS Class Name, and choose Mobile Views to hide it if needed.

html-options-3.png