Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 2 voices.

Last updated by Radu 4 years, 5 months ago.

Assisted by: Radu.

Author Posts
November 10, 2020 at 2:13 pm #7417233

adamc-30

The block is created using genesis custom block.

November 10, 2020 at 2:46 pm #7417527

adamc-30

Hi Radu, just checking with my colleagues about gaining access to our wp site - if we were to provide credentials, what role you would need in wordpress to see the files you'd need?

November 10, 2020 at 3:01 pm #7417709

Radu

Hey Adam,

The admin rights would be helpful, so I can have a look at any setting.

Also, it would be really helpful if you could replicate the block on the testing website that I created. This way, if I can't find the right XML config and it turns out that it's a more complex issue, I'll be able to send the test website to my colleagues for further investigation.

Thanks,
Radu

November 10, 2020 at 4:23 pm #7418177

adamc-30

Hi Radu.

I can grant you temporary access to our wordpress site. When will you access it so i can activate the credentials?

November 10, 2020 at 4:49 pm #7418263

adamc-30

In addition, we have recreated the issue on the test site you provided. Please goto this page:

hidden link and you will see the new two custom blocks appearing with test data. When we try to translate these, they do not appear on the translate screen.

wide-feature is included in the Custom XML configuration for WPML and does not appear.

November 11, 2020 at 9:46 am #7423487

Radu

Hey Adam,

I checked this out, trying to find a way to make this custom block translatable. However, it seems that the Genesis Custom Blocks is using a custom way of creating the custom blocks. The fields are saved into an array of arguments, which Genesis Custom Blocks plugin is parsing (I think) and create the elements on the front-end.

Also, this Genesis Custom Blocks plugins is not a part of the WPML compatible plugins list (https://wpml.org/plugin/). In this case, these two might not work together. As I mentioned, this plugin is having its own way of creating the structure of the Gutenberg blocks.

The steps presented in our documentation are working with the blocks created using WordPress tutorial (https://developer.wordpress.org/block-editor/tutorials/create-block/).

In this case, you can try to reach out to the plugin authors and ask them to apply for the Go Global program (https://wpml.org/documentation/theme-compatibility/go-global-program/). This way, our compatibility team will work together with them and see what can be done in order to make their structure compatible with WPML.

For now, I can see that the only thing that you can do is to create the custom block in Chinese as I did here:
hidden link

and then create the page in Chinese using the WordPress editor (not through the translation editor). This way you'll be able to add the custom block to the secondary language too.

Thanks,
Radu