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 6 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 7 months ago.

Assisted by: Mohamed Sayed.

Author Posts
November 20, 2023 at 4:48 pm #14879705

thomasF-80

<Tell us what you are trying to do?

>Hi, I'm trying to translate the widgets (coming from theme NEVE) in the footer section of a cloned webiste (dev. subdomain).

<Is there any documentation that you are following?

>Yes, https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#enable-auto-register-strings and all related.

<Is there a similar example that we can see?

>Yes, see the uploaded image.

<What is the link to your site?

>hidden link

Kind regards
Thomas Fengler

translate-footer.jpg
November 21, 2023 at 9:19 am #14884341

Mohamed Sayed

Hi Thomas,
Thanks for contacting WPML support.

I tested the Neve theme but I couldn't replicate this issue, the block widget appears in String translation as you see in the attached screenshots.

Please try the following steps and let me know if that helps:

Please check the following steps:
1- Go to WPML-> Theme and plugins localization, select your theme and scan it
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on "the « Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end

Kind regards,
Mohamed

Screenshot_332.png
Screenshot_330.png
November 21, 2023 at 11:09 am #14885735

thomasF-80

Hi Mohamed,

thanks for your reply. Well, after following all of your steps I finally could find the strings and then I translated them, but the translations do not show up, as you can see in the .PDF-file which you can download by clicking the following link hidden link

Kind regards
Thomas

November 21, 2023 at 2:32 pm #14887951

Mohamed Sayed

I would need to request temporary access (WP-Admin) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

November 22, 2023 at 10:34 am #14895685

Mohamed Sayed

Hi Thomas,

I'm not sure why the translation is not working, maybe because the text is coming from a shortcode attribute. On my testing site, I was testing with a paragraph block.

I tried another method to translate the widget by creating a different block for each language (https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages) and it works hidden link

You can create a different block for English with the following steps:

1. Go to Appearance > Widgets
2. Edit the footer widget "Footer Three"
3. Duplicate the shortcode block
4. Set one to display in German (Please check the attached screenshots)
5. Set the other one to display in English and change the text there

Let me know please if that works for you.

Kind regards.

Screenshot_335.png
Screenshot_334.png
November 22, 2023 at 8:46 pm #14902623

thomasF-80

Hi Mohamed,

thanks for your proposed solution. Well, the main problem is solved, but - as you can see for yourself in your screenshot hidden link - the vertical positions of the german versions and the english versions differ. I think (haven't checked it) that WPML just sets the texts which must not show (because they are in a different language) to some kind of "hidden" instead of "invisible". In the case of "hidden" they take the same space as if they would have been displayed. In the case of "invisible" they won't take any space; so that the german and the english version would be on the same vertical positions. Could that be fixed?

Thanks in advance
Thomas

November 23, 2023 at 10:39 am #14906581

Mohamed Sayed

Hi Thomas,

I checked the page and I see that now after translating the other widget, the two widgets appear on the same level hidden link

This issue happens because when you switch to the second language, the original language block is still added as an empty block with a bottom margin: hidden link

I think this can be fixed with CSS, so you can try adding the following code to the additional CSS section:

#block-39, #block-40 {
    margin-bottom: unset;
}