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 is split from https://wpml.org/forums/topic/multiple-issues-with-translations/
Tagged: Documentation request
This topic contains 40 replies, has 2 voices.
Last updated by Laura 11 months, 2 weeks ago.
Assisted by: Laura.
Author | Posts |
---|---|
November 20, 2023 at 5:57 pm #14879961 | |
antonyS-6 |
Hi Laura That is fine just so don't forget. Next priorty is the Woocommerce product category descriptions translations not keeping there HTML formatting. It keeps strong tags only. But looses h1, h2, h3, ul, ol, li tags. |
November 20, 2023 at 6:05 pm #14880025 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
The description are plain WooCommerce or there is some other plugin involved? |
November 21, 2023 at 8:02 am #14882797 | |
antonyS-6 |
The descriptions are just standard Woocommerce category desription. |
November 21, 2023 at 1:46 pm #14887483 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
I'd need access to the site (possibily a test one) to understand why this happens. |
November 22, 2023 at 8:57 am #14894047 | |
antonyS-6 |
Hi Laura can you please setup and test on a base install. I need to sort out the link issue ASAP. Or do I need to setup a new temp setup and try this myself? |
November 22, 2023 at 11:17 am #14896717 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
I need to test on a copy of your site, this is not a bug or we'd have dozen of report already. I you don't have a staging site you should create one or I can send instructions for a copy. |
November 22, 2023 at 2:40 pm #14899303 | |
antonyS-6 |
Please set so I can send you details for access to dev copy of site. |
November 22, 2023 at 2:49 pm #14899501 | |
antonyS-6 |
I have just found that by default WooCommerce filters HTML tags but the original developer enabled Yoast SEO plugin which, I now understand actually enables a WYSWYG editor for the category descriptions. I have created a new dev site with basic WPML and yoast and was able to translate category descriptions with HTML formatting but I added a snippet from Woocommerce which removes the filtering. hidden link Removing this snippet the translate category descriptions loose formatting. |
November 22, 2023 at 3:01 pm #14899685 | |
antonyS-6 |
Is there a way to get WPML to re-translate the product category description? |
November 22, 2023 at 3:49 pm #14900511 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
From String Translation, find there the description and send them to automatic translation. |
November 23, 2023 at 8:04 am #14904373 | |
antonyS-6 |
Well I tried that but the category descriptions I have checked so far are not showing in string translations. I have deleted all the German categories as per other forum posts https://wpml.org/forums/topic/automatic-translation-of-woocommerce-productcategories/ But not they will not recreate. I have tried creating a new dummy product and assigning to all categories and translating but this hasn't worked. Do you have any comment about the HTML filtering? |
November 23, 2023 at 8:14 am #14904415 | |
antonyS-6 |
I have a staging copy I created yesterday before restoring all the previous revisions. So you can still investigate on there. |
November 23, 2023 at 10:59 am #14906759 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
Since the filtering is custom code provided by WooCommerce, it's likely not working when paired with WPML. You said you recreate the issue, please provide me the credentials or a copy of this site and I'll send it to the devs but I'm not sure we can fix it because it could involve modifying WooCommerce's code somewhere else and it's not something we should do. |
November 23, 2023 at 12:23 pm #14907555 | |
antonyS-6 |
To clarify I have now added the code from Woo and that seemed to work on the new test site. I have now also added to the live site but need to force WPML to recreate the German categories. Please ensure you read all comments between your last as you seem to have skipped these. |
November 23, 2023 at 1:12 pm #14908333 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
I checked with the devs and the only way to send category description to translation is attach them to a post like described here https://wpml.org/faq/how-to-translate-all-taxonomy-terms-at-once/ However, they are already translated (from your message it seemed there were not translated) so I'm not sure what do you mean with "they're not recreated". If you think the translation is wrong, we currently have this issue with taxonomies and the advanced editor https://wpml.org/errata/wpml-overwrites-edits-in-the-advanced-translation-editor-for-taxonomies-and-image-texts-translations/ so even if you automatically retranslate the description it won't apply in the front end. Also the HTML is correctly applied so everything seems ok to me. |