Archived topic
Conditional content based on user input
7 replies · Started by Kuldeep on January 13, 2020
Hi,
First of all, thanks for the amazing theme and support.
I want to have a toggle button (like iPhone switch or any other input mechanism) where users can check which variant of content they want to read. Basically I want the users to select their preferred language at the top of each post.
Depending on the selection, all the paragraphs will display the content in the selected language, keeping the images and other sections constant.
Please let me know if this possible.
Thanks in advance.
Regards,
Kuldeep Rana
Hi there,
I believe a translation plugin like Polylang or WPML would be what you are looking for.
Let me know if this helps :)
Thanks for the answer Leo but I am not looking for any sort of translator as these are not reliable. I can create the two variants myself and based on the user's input I want to display that version.
Using 'tabs' is one option that I can think of. I was looking for a more standard way of doing this.
Unfortunately, I believe that would require some pretty substantial custom coding without a plugin.
Maybe a plugin like this would help?
https://en-ca.wordpress.org/plugins/tabs-responsive/
OK Leo, it looks like I have to go for Tabs only.
Thanks for the plugin suggestion.
No problem :)
There should be a few more tabs/accordion selections out there as well that might be worth checking out.
Thanks, marking the issue as resolved.
No problem :)