HTML Snippet

 

The HTML Snippet allows you to add a small piece of HTML, JavaScript and CSS code inside the content area on your site. You can use this functionality to easily integrate a shopping cart, Google AdSense and others. More advanced users may also use the HTML Snippet to integrate small custom-programmed tools and functions inside their website.

 

When adding Javascript code inside an HTML Snippet please double-check its correctness as faulty code can spoil the appearance of your site or lock you out from the Admin interface.


If adding an HTML Snippet to your site resulted in blocking your Admin interface, you can remove it by loading the same page with:
?safe_mode=1 parameter after the .html, like:

 http://domain.com/login-name/ADMIN/home.html?safe_mode=1

and then choosing Delete from the blue wrench icon of the faulty snippet.

NOTE: It make take a few seconds (up to a minute) for the page to reload with safe_mode=1.

 

To add an HTML Snippet reach for the top menu and click Add Content > HTML Snippet. Green rectangles will appear to indicate the locations where the snippet may be added. Choose a location by clicking on a green rectangle and the Add HTML Snippet popup will be displayed. Add the code inside the box and Submit.

 

 

Your snippet may be used to display calendars, polls and other functionalities which are well visible on your page. In this case you may edit the snippet by just rolling over the feature displayed by the snippet. When the snippet is used to add Google Analytics code, style modification code or others, it will not have a visual repesentation. In this case, the location of the snippet you added will be denoted by a small placeholder . Rolling over the placeholder will allow you to access the snippet  Edit icon and edit it.

 

An HTML Snippet may also be added inside the Text and Images editor. This will let you easily position the snippet among your other text, align it, add the snippet inside a table, etc.

 

You can insert pieces of code into the Head element of your site using the Header HTML feature in Site Properties