• Resolved tonyp83

    (@tonyp83)


    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 called aa-dataset-1aa-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)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly not sure what to suggest here as it’s essentially a topic of trying to conditionally show some text based on what the current language is present in the given part of the record.

    Some records have been fully translated.

    Some records have a mix of both languages still

    We’re trying to hide part of the rendered UI for an item based on what that record portion’s content language is, which could be either.

    In the end, this feels like it could/should be an all or nothing situation. What I mean by that is accept that some results will be mixed, but still show for all. Or hide the columns for both languages until the translation work is completed. Not sure if that’s an acceptable solution here though.

    Thread Starter tonyp83

    (@tonyp83)

    Hi Michael, thanks for you feedback, as I thought it’d be a bit difficult to do in the current state as there’s no class or ID included in those divs.

    I’m going to just go with a show all option, as I suppose ultimately the goal should be to get the whole site translated eventually.

    Thanks,

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sounds like a plan and probably the better route to go, so that you don’t need to worry about remembering to re-show the columns later.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.