However we've now discovered a further issue - if there's a line break in the accordion title, the translation of the title fails. Weirdly this doesn't happen if there's no content in the body of the accordion.
I have created this clean sandbox setup on our servers here: hidden link (one-click login)
I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and to also install the Essential Blocks plugin then try to recreate the issue.
Please don't install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue
If the issue is going to take place on this clean setup on our servers too, then I can forward this to our compatibility department.
Please let me know how that goes and what you can find.
Hi. The problem is visible on your servers too but appears slightly different.The translation fails whenever there's a line break, regardless of whether or not there's content in the accordion (I'm not sure how I managed to get a different result).
The issue happens because of the HTML <br> tag is added without closing it, which breaks the xPath functionality.
The <br> tag in HTML should be a self-closing tag. So to fix it, you should add a slash there and use <br/> instead of <br>. If we do that, the issue does not happen. This is a recommended practice in HTML and is compatible with xPath.
Please try the following steps:
1. Edit the original page
2. Edit the accordion title with the line break
3. In the "Title Text" field, replace <br> with <br/>
4. Update the page and update the translation
I tested this on the sandbox site and it works as you can see here: hidden link
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.