Valid for MyWebsite Now.

The HTML module of MyWebsite Now allows you to use HTML and JavaScript on your website. This article explains how to do this.

Please note

The HTML module is not included in all MyWebsite Now versions.

Integrating the HTML module

Requirement

The Flexibility feature must be activated for the following steps.

Alternatively: If the Flexibility feature is not activated, click on one of the plus signs displayed in the detail area of the section after activating the section options. The element menu with the HTML module button is displayed.

To activate the HTML module:

  • Log in to your IONOS account.
  • Click on the Websites & Shops tile. If you have multiple website contracts, click Manage Website in the appropriate tile. The Presence Suite for this project opens.
  • In the Presence Suite menu bar, select Website Editor. MyWebsite Now opens in a new window.
  • Select Content in the left-hand menu bar of the MyWebsite Now editor.
  • In the detail window, move the mouse pointer over the desired section and click on the Section options button. Details on the section options are displayed between the left menu bar and the detail window after activation. Note that the Section options button is only displayed when the mouse pointer is over the section.
  • Select the HTML module button in the section options menu. A freely positionable placeholder is displayed in the detail area.
  • Click on the HTML placeholder > Code to insert your HTML or JavaScript content.
  • Select the required data protection option. You can find out more about this in the following section Adding a data protection consent.
  • Finalise your entries with Done.

Adding a data protection consent

In the HTML module, you will find a data protection option below the code input field:

  • Consent required: Your HTML or JavaScript code will only be executed on the MyWebsite Now page after consent has been given by the visitor. Use the New... option to create a new consent rule. Consent rules that have already been created can be reused.
  • No consent required: The HTML or JavaScript code of your HTML module is executed directly when the page is called up.

Executing HTML in the page header (head)

If you place HTML or JavaScript code in the page header of your MyWebsite Now project, it will be used on every page. This is how you use the alternative to an HTML module on a single page:

  • Log in to your IONOS account.
  • Click on the Websites & Shops tile. If you have multiple website contracts, click Manage Website in the appropriate tile. The Presence Suite for this project opens.
  • In the Presence Suite menu bar, select Website Editor. MyWebsite Now opens in a new window.
  • In the left menu bar of the MyWebsite Now editor, select Settings > Head code.
  • Enter your HTML or JavaScript code.
  • Select a data protection option and finalise your entry with Save .