Skip Navigation

Etiquetado: 

This topic contains 0 respuestas, has 1 mensaje.

Last updated by quentinK hace 10 meses.

Assisted by: Subash Chandra Poudel.

Autor Entradas
mayo 31, 2023 a las 9:51 am

quentinK

Hello,

First, here is the setup. I've developed a block theme locally, then migrate it to a host server using "duplicator" plugin.

It appears that i'm not able to customize (edit) template part in other languages than the main language.

On the localhost, everything works fine. The main language is set to french. when editing a template part in english, i can see that there is a POST request to
localhost:8888/en/wp-json/wp/v2/template-parts/qweekle//header?_locale=user
which works

However, on the production site (which for the record is within a subdirectory, the host is ) the POST API request fails and returns a 404 error (again it works in the main language which is french)

Can you help me identify the issue? I can see that the language code is included in the API request, can that be an issue?

Thank you

mayo 31, 2023 a las 10:31 am
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.