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 3 replies, has 0 voices.

Last updated by Bobby 1 week, 1 day ago.

Assisted by: Bobby.

Author Posts
November 15, 2024 at 2:55 pm #16408997

creodeD

Background of the issue:
I'm using the WordPress Focal Point plugin to set focal points on images within the media library. I have found the specific meta field to use which is called 'bg_pos_desktop'. I went to 'Multilingual Content Setup' -> 'Custom Field Translations' -> 'Searched for bg_pos' and selected 'Copy' for the 'bg_pos_desktop' field. I have selected 'Copy' for this field within my configuration screen. URL: hidden link

Symptoms:
The image is duplicated correctly, however, the 'bg_pos_desktop' meta is not added to the new attachment when creating new translations.

Questions:
Why is the 'bg_pos_desktop' meta not being copied to the new attachment?
How can I ensure that the focal point is duplicated correctly for translated attachments?

November 15, 2024 at 9:56 pm #16409905

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

The meta field should be copied if set to 'copy', is there a way you can view the meta field within the media when editing it in the backend that we could use to verify this?

Also, not sure if you are using the media ID to set anything up, but do note that the media have a different ID per language.

The EN media will have a different ID from the same ES media.

November 18, 2024 at 2:17 pm #16415222

creodeD

Hi Bobby,

I agree, the meta field should be copied when you press copy, however this is not happening.

Yes, we can view it in the focal point section at the bottom of the edit pages.

The first screenshot is the original images from my site, with the second being the copied version.

Thanks

CleanShot 2024-11-18 at 14.15.55.png
CleanShot 2024-11-18 at 14.15.17.png
November 18, 2024 at 10:05 pm #16416776

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I created a sandbox for us to further inspect and can verify that the focal point does not 'copy' over.

The plugin Image Background Focus Position is not an officially compatible plugin with WPML.

I highly suggest reaching out to their author and asking them to join our Compatibility program where we can help them make their plugin compatible with WPML.
https://wpml.org/documentation/support/go-global-program/

In the meantime, you can manually adjust the focal point:

- Go to Media Library
- Use the language switcher at the top and switch to the secondary language
- Edit the media and add a focal point

In this manner, you could technically have a focal point that is either the same per language or different.

Screencast of the workaround steps:
hidden link