Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Mihai Apetrei 1 year, 11 months ago.

Assisted by: Mihai Apetrei.

Author Posts
August 1, 2023 at 12:00 am #14129831

craigK-2

Tell us what you are trying to do?
Our site has 32 WPML languages. Our client tells us the language switcher dropdown menu is too long. He asks if it is possible to present the language selection in a tabular manner in a modal window? This way the languages would take up several rows and multiple columns instead of one long single column.

Is there any documentation that you are following?

Is there a similar example that we can see?
Screenshot I found which fairly closely resembles the idea I have thought of hidden link

I found this image from a Google search and it is from a Smashing magazine article
hidden link

What is the link to your site?
hidden link

August 1, 2023 at 10:41 pm #14138061

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

No, we don't have something like this built into WPML yet.

This would need custom coding so I would recommend hiring a developer or a WPML contractor (https://wpml.org/contractors/) as custom coding falls out of the Support Policy.

Mihai Apetrei

August 3, 2023 at 7:19 pm #14151567

craigK-2

I found this documentation page about creating and styling our own custom language switcher https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/

It looks like the method described in this page might lead me to what I want done.

I can take a crack at doing this myself.

I just want to ask if what the above page describes is in the right direction for me to pursue?

Thanks.

August 4, 2023 at 10:45 pm #14157499

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Yes, you could create a custom language switcher but the examples there just show a floating language switcher, I thought that you would want a modal that pops up automatically when someone enters the site.

You are on the right track.

You could also try to find a modal/lightbox WordPress plugin and use php or a shortcode as explained here:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

Mihai

August 5, 2023 at 12:59 am #14157609

craigK-2

Thanks for the link.

As for a modal/lightbox plugin, are there any you would recommend?

August 8, 2023 at 8:28 am #14167581

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

You are welcome!

This is one of the most popular lightbox plugins:
https://wordpress.org/plugins/simple-lightbox/

But I recommend that you search on Google, too, because there are blog posts that feature the top 5-10 most popular ones for any category.

Have a lovely rest of the week!

Mihai

August 9, 2023 at 9:54 pm #14178589

craigK-2

Thanks for the plugin recommendation. Yes, I will also google for a few more to choose from.

August 9, 2023 at 10:11 pm #14178735

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

You are very welcome! 🙂

Good luck.