Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're using the WordPress Focal Point plugin to set focal points on images and have noticed that the 'bg_pos_desktop' meta field is not being copied to new translations despite being set to 'Copy', you might be facing a compatibility issue.
Solution:
First, ensure that you can view the meta field within the media when editing it in the backend. Remember that media IDs differ per language, which might affect the copying process. Unfortunately, the Image Background Focus Position plugin is not officially compatible with WPML. We recommend contacting the plugin author to join our Compatibility program to facilitate compatibility. Meanwhile, you can manually adjust the focal point by:
1. Going to the Media Library.
2. Using the language switcher at the top to switch to the secondary language.
3. Editing the media and adding a focal point manually.
This workaround allows you to set a focal point that could be the same or different per language. For a visual guide on these steps, you can watch this screencast: Workaround steps.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.

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 month, 1 week 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