Modify the Default controller.html File

Download a site's controller.html file and modify it to affect the behavior of each site page. To download a site's controller.html file:
  1. Open the site you want to modify in Site Builder and set it to Edit.

  2. Select an existing update or create a new one.

  3. Click Settings in the side navigation menu and then Site.

    Site Settings

  4. In the Controller File section, click Download default controller file.

  5. Save to your local drive and customize the controller.html file with your edits.

  6. When done editing, return to the settings page of the site and in the Controller File section, click Select file to upload.

  7. Navigate to the modified controller file and upload it.

Note:

Customizations to the controller file are only used in online sites. They will not be used when editing a site or in site previews. For the changes to take effect after uploading a custom controller.html file for a site, the site update must be committed and the site must be published.