- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.5.14
- Resolved in
- WPML 4.7.2
- Topic tags
- Bug
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 → Template → Add 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
After creating a new template with the Site Editor, set the language information as follows:
- Go to WPML → Support → Troubleshooting.
- Click on the Set language information button.
Now, you will be able to edit your templates from Appearance → Editor → Templates.