Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is concerned about the potential impact of the twig template problem in the next WPML update on their site, especially since they are unfamiliar with the website's code.
Solution:
We asked the client to provide screenshots from the WPML → Languages → Menu language switcher and Widget language switcher sections to assess the usage of TWIG templates. Upon reviewing the provided screenshots, we confirmed that the language switchers on the client's site do not use TWIG templates. Therefore, the client should not experience any issues related to the removal of TWIG support in future updates.

If this solution does not seem relevant to your case, or if it becomes outdated, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket.

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.

This topic contains 5 replies, has 0 voices.

Last updated by nicolasG-37 1 day, 12 hours ago.

Assisted by: Andrey.

Author Posts
June 16, 2025 at 12:29 pm #17138591

nicolasG-37

Background of the issue:
I am trying to determine if the site hidden link is impacted by the twig template problem in the next WPML update. Our developer left the company, and I have no idea about the websites' code.

Symptoms:
Concern about potential impact of twig template problem in the next WPML update.

Questions:
Is the site impacted by the twig template problem in the next WPML update?

June 16, 2025 at 1:19 pm #17138903

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

Can you share the screenshot of WPML → Languages → Menu language switcher and Widget language switcher sections?

June 16, 2025 at 1:42 pm #17139008

nicolasG-37

No problem, here you go:

wpml-twig3.png
June 16, 2025 at 1:53 pm #17139320

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you. It looks to have been added from some other place.

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.

June 17, 2025 at 8:19 am #17141254

nicolasG-37

My managers don't allow me to give you access to our sites, but I have determined that the default language selector is disabled (line 673) and a custom one is written (line 958) in the functions.php file in the parent theme (folder sageohc).
Furthermore the custom language selector is used in bottomline.php (folder sageohc).
A file called lang-dropdown.php (folder sageohc) might also be important.
I can upload the folder to you as a zip, but I am only allowed images. I'll add the functions.php code as an image.

functions.php.png
June 17, 2025 at 3:37 pm #17143218

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for the information.

Yes, that’s most likely how the language switcher appears on your site — it doesn’t use any TWIG templates. So you shouldn’t experience any issues when TWIG support is removed in the future.

June 18, 2025 at 5:36 am #17144554

nicolasG-37

OK, thank you for your help.