Hiding Post Types in Autocomplete under certain circumstances
-
Hi,
I have WPML running on the site and working with WPML. We’ve only translated half the site into the second language, German. So when you’re on a page in German, we want to hide two of the columns in Autocomplete, so you don’t show them (as these will still be in English).
This could be done in CSS using
display: none
but the content shows inside classes calledaa-dataset-1
–aa-dataset-4
and there’s gaurantee what category will show in each.
Is there a better way to target these? I know this is a bit of an odd request, so any help is much appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.