Skip Navigation

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

Problem:
You are experiencing issues with missing button styles in translated pages using WPML.
Solution:
We recommend updating the page translation. First, make slight modifications to the original page, specifically to the Advanced Custom Fields (ACF) part. After saving these changes, navigate to the WPML translation editor and complete the translation.

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. If the problem continues, please 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.

Tagged: ,

This topic contains 6 replies, has 0 voices.

Last updated by Andrey 2 weeks, 1 day ago.

Assisted by: Andrey.

Author Posts
December 4, 2024 at 2:45 pm #16477317

heidiS-6

Also, a secondary question for you - the whole reason why I was trying to change the translation was because we aren't getting some of the necessary button styles in the translation and I'm not sure how to rectify that?

December 4, 2024 at 3:17 pm #16477448

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

After triggering the translation, have you tried making changes to this button, saving the page, going to the translation editor, and completing the translations?

If so, how have you added and styled those buttons on the page?

December 5, 2024 at 8:53 pm #16483868

heidiS-6

So there is button html in the ACF field that populates this on the english version, but in the Spanish translation area in the translation editor, it doesn't show it having associated html so the translation is correct, but it appears outside of the button html itself.

Screenshot 2024-12-03 at 2.40.44 PM.png
Screenshot 2024-12-03 at 2.40.11 PM.png
December 6, 2024 at 3:11 pm #16486624

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for your feedback.

After inspecting the section, I noticed that the button's structure is different, which may explain the issue.

To better understand why this is happening, I would appreciate more information on how you created and added the HTML button in the ACF field that populates this on the page.

Screenshot-2024-12-06-at-17-06-42.png
Screenshot-2024-12-06-at-17-05-19.png
December 9, 2024 at 8:02 pm #16494956

heidiS-6

Hello!

This is how they look on the backend in the ACF.

<p style="text-align: center;"><a class="button-white" href="<em><u>hidden link</u></em>">Log In</a></p>
<p style="text-align: center;"><a class="button-white" href="<em><u>hidden link</u></em>">Register</a></p>
Screenshot 2024-12-09 at 3.01.26 PM.png
December 10, 2024 at 3:56 pm #16499487

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Try to update the page translation. To do so, modify the original page slightly, make some changes to that ACF part, save it, navigate to the WPML translation editor, and complete the translation.

If this is still the problem, I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.

December 11, 2024 at 3:46 pm #16504374

heidiS-6

I ended up having the error from my original post again, but was able to get through that and finally update the buttons.

Thanks!

December 11, 2024 at 4:17 pm #16504597

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I am glad to see that it works now. Have a nice week!