Skip Navigation

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 1 reply, has 2 voices.

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

Assisted by: Mihai Apetrei.

Author Posts
July 8, 2023 at 12:15 pm #13971325

fredericS-31

Im trying to make a pop up that appears on every page and looks exactly as the one in the picture, I did a custom one but I cannot redirect to the current page in the same language, the only thing I can do is redirect to the homepage.

Is there a way I can do this?

Screenshot 2023-07-08 131438.jpg
July 11, 2023 at 10:25 pm #14018305

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

I recommend that you serve/load a custom language switcher as shown here:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes

That should give you the correct flags and should come with the correct implementation so that it will properly redirect to the corresponding translation of the current page when you are clicking the other language than the one you are on already.

I hope I understood your goal correctly.

If that doesn't work, I'm afraid this will require custom coding (which falls out of the purpose of our Support Policy) and for that, I would recommend hiring a developer or a WPML contractor (https://wpml.org/contractors/).

I hope that you will find the information above helpful.

If what a normal language switcher does is what you need, then loading one as explained in our documentation should work exactly the same.

Kind regards,
Mihai Apetrei