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: Compatibility
This topic contains 8 replies, has 2 voices.
Last updated by Ahmed Mohammed 1 year, 11 months ago.
Assisted by: Ahmed Mohammed.
Author | Posts |
---|---|
March 30, 2023 at 2:57 pm #13368515 | |
faraldH |
Tell us what you are trying to do? Is there any documentation that you are following? Is there a similar example that we can see? What is the link to your site? WP is updated to 6.2, WPML is updated today. Thank you! |
March 31, 2023 at 1:05 am #13371221 | |
Ahmed Mohammed Supporter Timezone: Africa/Cairo (GMT+02:00) |
Hi there, Thank you for contacting WPML support! It looks like the image hover effect is created by a plugin called dizo-image-hover. In order for us to be able to help with making the XML for the shortcode created by that plugin, please provide us with the login credentials as instructed below. It would be better to have a testing site where the issue is replicated. You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private, meaning only you and I can see and access it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved, I will delete the local site. Let me know if this is ok with you. IMPORTANT - Please backup site files and database before providing us access. |
March 31, 2023 at 9:10 pm #13379093 | |
Ahmed Mohammed Supporter Timezone: Africa/Cairo (GMT+02:00) |
Hi Farald, Sure! I will be waiting for the login credentials. I have enabled the private reply again. Have a wonderful weekend! |
April 3, 2023 at 8:30 pm #13394257 | |
Ahmed Mohammed Supporter Timezone: Africa/Cairo (GMT+02:00) |
Hi there, Thank you for providing the login credentials. As I mentioned, the Image Hover shortcode is provided by this plugin: Divi Image Hover - and I followed the instructions from this page: https://wpml.org/documentation/support/language-configuration-files/#page-builder-content - to create the needed XML to register the shortcode strings for translation. Please go to WPML → Settings → Custom XML Configuration, and replace the content with the following: <wpml-config> <shortcodes> <shortcode> <tag>et_pb_image</tag> <attributes> <attribute type="media-url">src__hover</attribute> </attributes> </shortcode> <shortcode> <tag>dizo_image_hover</tag> <attributes> <attribute>image_alt</attribute> <attribute>t_prefix</attribute> <attribute>content_text</attribute> </attributes> </shortcode> </shortcodes> </wpml-config> After saving that, please edit the homepage by adding any dummy text and then you'll find the strings in the translation editor. Hope that heslp 🙂 |
April 4, 2023 at 9:16 am #13398053 | |
faraldH |
Hi Ahmed, Sorry to say it didn't help. Replaced the code in the Custom XML Conf., added some dummy text, saved and went to string translations, had to add some translations manually, but then the site crashed when I reviewed the translations. In short: it didn't do any good to the site and my client is, to say the least, not amused ;-( |
April 4, 2023 at 6:48 pm #13403451 | |
Ahmed Mohammed Supporter Timezone: Africa/Cairo (GMT+02:00) |
Hi Farald! The code provided is in XML, a markup language; it is not a programming code that could cause fatal errors. Furthermore, if the code has any errors, WPML's settings will not allow you to save it.
Hmm, when you update the page's content, you'll need to use WPML's translation editor, and you should see the image hover text as shown in the attached screenshot. With that said, I'm going to clone the website locally to enable the String Translation plugin and check the error produced. I will keep you posted 🙂 |
April 4, 2023 at 7:37 pm #13403807 | |
Ahmed Mohammed Supporter Timezone: Africa/Cairo (GMT+02:00) |
Hi again, Farald! As shown in the attached screenshots, I was able to translate the image hover content with String Translation enabled and the XML settings are saved. If you're receiving a gateway error, most probably it's a hosting-related thing. Still we can look into this, but I will need the FTP details because I will need to check the logs and disable any plugins in case something goes wrong. I have enabled the private reply. Looking forward to hearing back from you. |
April 6, 2023 at 7:56 am #13416995 | |
faraldH |
Hi Ahmed, Thank you for your quick reply with instructions and examples. Re installed xml conf code, activated string plugin, found string elements but string fields stayed empty while waiting for translations, so I manually added translations and that worked. For now: no action required. I wil set up a test page from scratch with all the hover-elements and check what's happening. Have a nice day, |
April 6, 2023 at 6:27 pm #13422243 | |
Ahmed Mohammed Supporter Timezone: Africa/Cairo (GMT+02:00) |
Hi Farald, It's great to hear that things are finally getting started! Please make sure to take your time to test. I will update the status of this ticket to "waiting for your confirmation" in the meantime. Have a wonderful rest of your day! |