Archived topic
Dispable Hook on other languages
5 replies · Started by Dominik on April 1, 2021
Hi guys,
we are using some sticky buttons created with a hook and a display rule exclude on some pages (e.g.locations).
This works well in German, but not in the other languages. Only in German the buttons are disabled.
This are the rules for not showing the hook
Seite: Produktvergleich
Seite: Product comparison
Seite: Comparaison des produits
Seite: Comparación de productos
Seite: Standorte
Seite: Locations
Seite: Ubicaciones
Seite: Sites
Do you have an idea what the problem could be?
Thanks and best regards,
Dominik
Hi there,
Would something like this help?
https://generatepress.com/forums/topic/bug-elements-and-display-rules-and-wpml-wpml-global-locations-bug-ongoing/#post-666723
Hi Leo,
added the code to the functions.php but without success.
Hi there,
not overly familiar with WPML - is there separate translated versions of the Hook ? And do those require their own Exclude rules ?
Hi David,
there was a translation of the text-content AND a translation of the hook itself made by WPML, which not inherited the german hook rules. So we had to adopt the rules for every hook translation. Now it works :)
Thanks!
Dominik
Glad to hear that !