Overview of the issue
If you use a directory for your default language, WPML allows you to set an HTML file as your root page by going to WPML → Languages → Language URL format.
However, doing this may prevent the Translation Tools tab (for WPML versions before 4.5) or Automatic Translation tab (for WPML 4.5 and later) from loading. Instead, you will see following console error:
Uncaught SyntaxError: Unexpected token ‘<‘
Our developers are aware of this situation. In the meantime, you can:
- Set another WordPress page as your root page instead in the same section.
- Create a custom PHP template in your theme folder with content like the following:
<?php /* Template Name: Root Page Template */ wp_redirect( "http://YOURHOSTNAME/it/" ); exit; ?>