Waqas Bin Hasan
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
|
Thank you for your patience and cooperation.
I analyzed further and found that the "f" based filter is coming from "HUSKY - Products Filter Professional for WooCommerce" plugin and is dependent on this.
Unfortunately, "HUSKY - Products Filter Professional for WooCommerce" is not compatible with WPML (https://wpml.org/plugin/).
Because if you deactivate this plugin, the URL hidden link leads to a 404 not found. Since the plugin isn't compatible, WPML can not find the substitute (or translated) version for replacement.
However, if you simply change the link in HTML Block to hidden link and then translate in ATE to hidden link (the appropriate substitute), then it works just fine and is replaced in the menu also.
Attached are all the screenshots for your reference. I've tested with one link in the sandbox and you can try with the others too.
I recommend you to contact the plugin author and request a compatibility update. WPML offers very useful information for developers aiming to make their themes/plugins compatible. Please see https://wpml.org/documentation/support/ and https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/ for details.
Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well.
|
Waqas Bin Hasan
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
|
Sorry forgot to attach the screenshots, please find with this message.
|
Waqas Bin Hasan
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
|
Just an update, I discussed with the team and found out that the said plugin was previously called WOOF and is a recommended and compatible plugin with WPML.
Team has updated our list of compatible plugins to include it correctly at https://wpml.org/plugin/husky-products-filter-professional-for-woocommerce/.
So I'm working further on it and 'll probably escalate the issue for further investigation. I'll update you accordingly.
Please accept our apologies for the inconvenience.
|
Waqas Bin Hasan
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
|
Thank you for your patience and cooperation. I've escalated the issue to our compatibility team and 'll get back to you accordingly.
|
Waqas Bin Hasan
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
|
Thank you for your patience and cooperation.
Our team has suggested the following workaround:
- Add the following code to the functions.php file:
// WPML Workaround for compsupp-7532
function wpml_compsupp7532_add_custom_blacklist_requests( $blacklist, $sitepress ) {
// Add your custom request to the blacklist array
// We can hardcode URL's, like:
//$blacklist[] = "c/rear-view-cameras/f/vehicle-type-truck";
// Or use REGEX. This regex should match slugs like "c/(any slug here)/f/(any slug here)" - we may need to adapt it if needed
$blacklist[] = '/^c\/[^\/]+\/f\/[^\/]+\/?$/';
return $blacklist;
}
add_filter( 'wpml_sl_blacklist_requests', 'wpml_compsupp7532_add_custom_blacklist_requests', 10, 2 );
- Save the file.
- Add a small modification to the block content and save.
- Update the translations. You may need to re-translate the links.
We've tested this in different environments, including the sandbox I created earlier. hidden link">Here you can check the menu, now it contains proper translated links.
Please apply the workaround in your site and let me know.
|
nicoK-7
|
I have tried it on your sandbox and it really works.
But when I implemented your code on my site it didn't work.
Can you look around maybe I'm did something wrong?
|
Waqas Bin Hasan
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
|
Thank you for the updates. I'll check soon and 'll get back to you tomorrow about it.
|
Waqas Bin Hasan
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
|
Thank you for your patience and cooperation.
I was able to find and fix the problem. Actually you had to add that code at end of theme's functions.php file. Since you had added in somewhere middle, the further customizations in your code were making the problem.
I've added the code at end of functions.php file and then make little change (like ...) in the block's content, saved and updated the translation. After that I removed my change, saved again and updated the translation again.
And this is working fine now (see attached).
|
nicoK-7
|
Thank you to all support team for a fast and great support. I very appreciated for your work.
|