Background of the issue:
Our website uses Timber for WordPress, which relies on twig templating for the front-end. With the new update removing support for twig completely, we need some guidance on how to convert this website to be compatible.
Symptoms:
The new update has removed support for twig completely.
Questions:
How can we convert our website to be compatible without twig support?
Welcome to WPML support. I will answer this ticket before the ticket is assigned to one of my colleagues.
The TWIG template support removal is happening only on the WPML-related side, which is the language switcher or the currency switcher if you use WooCommerce.
If you used custom TWIG code to create the language switcher you will not be able to use that anymore.
But the default language switcher feature that adds to the menu would work as before.
So if you added the language switcher from WPML > Languages > Menu language switcher that should be fine.
Would you please give us more information on how the language switcher is implemented on your website?
Also having debug information will help to see how your website is set up. Would you please kindly follow the steps below to provide the debug information?
- Go to "WordPress Dashboard > WPML > Support > Debug Information (Link)".
- Copy the Debug Information from there.
- Get back to this chat screen and scroll down.
- Find the "Additional Data" section below. (Check the screenshot below)
- Click on the "Debug Info" item to expand it.
- Paste the debug information into the text area.
- Click the "Send Debug Info" button.
If that’s the case, the switcher integration is handled via PHP, so no changes are needed. Twig code within your template wouldn’t be affected by our update — unless you’ve used our Twig template inside shortcodes.