Overview of the Issue
If you try to create a new template using the WordPress Site Editor (formerly known as Full Site Editing) from the editing page (by going to the right panel → TemplateAdd template), you will see a JavaScript error in the console:
POST https://www.domain.com/wp-json/wp/v2/templates?_locale=user 400 (Bad Request)
Workaround
This issue is fixed in WPML 4.7.2. Updating solves it on your site, so you only need this workaround if you can’t update yet.
After creating a new template with the Site Editor, set the language information as follows:
- Go to WPMLSupportFix language data (on WPML 5.0 and later this tool comes with the WPML Troubleshooting plugin, installed from WPMLActivate & Update).
- Click on the Set language information button.
Still Seeing This Issue?
If updating doesn’t fix it, ask a support question and we’ll look into it with you.
Ask a support question