Archived topic
Hide Element on WMPL pages
1 reply · Started by rockett on June 7, 2019
I have a site using wpml. I have created a footer hook element to hold a 4 column set of menus. I only want it to show on the English language pages, but using Exclude and selecting all Chinese pages isn't doing the trick.
Any ideas?
Hi there,
I believe this post offers some insights:
https://generatepress.com/forums/topic/bug-elements-and-display-rules-and-wpml-wpml-global-locations-bug-ongoing/
Specifically, Tom's reply here:
https://generatepress.com/forums/topic/bug-elements-and-display-rules-and-wpml-wpml-global-locations-bug-ongoing/#post-666723
If you are using hooks, then make sure you use generate_hook_element_display.
Let me know if this helps :)