[Resolved] Translate links included in woocommerce category descriptions
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate links in WooCommerce category descriptions and encountering issues where the translated links do not match the expected URLs, affecting SEO internal linking. Solution: We recommend updating to the latest versions of WPML Multilingual & Multicurrency for WooCommerce, specifically version 5.5.3, as this version includes a fix for the issue you are experiencing. If this solution does not resolve your issue or seems outdated, please check the related known issues and confirm that you have installed the latest versions of your themes and plugins. If the problem persists, we highly recommend opening a new support ticket for further assistance. You can do so 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.
I've reviewed this thread to refresh my memory about your case.
I accessed the staging site you gave us access to.
I updated WordPress, the Astra theme, and our plugins.
(Some plugins cannot be updated because they require a license.)
I added this function that we provided as a workaround to the functions.php file of the Astra Child theme.
Then I noticed that it is a different site than the one you initially reported the problem with. (hidden link is a site about military equipment, and hidden link is about home design.) I checked several products for a link in their description, but couldn't find one. Could you please send me a link to one of the products with this problem?
If possible, I'd also appreciate a screenshot showing the link.
Hi!
You can find a link in almost each product category description.
Here for example: hidden link down the category description, "perfect jute rugs for your home"
The following has not been asked before by us, so I must get your permission before proceeding. Do you allow me to switch the theme to a default WordPress theme and deactivate all the third-party plugins?
And if needed, do you allow me to take a copy of your site?
To achieve this, I need to install a plugin such as Duplicator or All-in-One Migration. Please let me know if you agree.
In addition to the above, I just encountered a critical error on hidden link. Please see the attached screenshot. When and if you allow me to proceed with my requests from the previous reply, please correct this fatal error or restore the site from a recent backup.
Yes, obviously, the staging is a copy of the site.
However, our second-tier supporters need a copy of the site to debug issues on their local server. This out working procedure.
I'll keep you updated on any news regarding this issue.
While our second-tier supporter reviews this case, we would like to remind you that you can edit the category descriptions in WPML -> Taxonomy Translation and update the links there. We understand that this may involve a significant amount of manual work; however, if you must proceed, this is the immediate workaround we can offer.
FYI, our developers informed me that the fix for this issue is already included in the latest versions of WPML Multilingual & Multicurrency for WooCommerce (5.5.3).