Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.
Problem:
You received a notification from WPML about the upcoming removal of support for using Twig templates to customize language and currency selectors in version 4.8. You are unsure if your site uses Twig templates.
Solution:
If you're only using default WPML options, you don't need to worry about this. If you want to check further, you can do the following
1. Check if Timber is installed:
- Navigate to your theme directory (wp-content/themes/your-theme/)
- Look for references to Timber or .twig files, such as in the functions.php file:
use Timber\Timber;
or
Timber::render('single.twig', $context);
- Also, check for .twig files like header.twig, page.twig, etc.
2. Verify if Timber is installed as a plugin or a composer package:
- In wp-content/plugins/, look for a folder named timber-library
- Alternatively, in the composer.json of the theme or project, search for:
"timber/timber": "^x.x"
3. Check the generated HTML code:
- Sometimes, Twig templates leave traces in HTML comments.
- Open Developer Tools → "View Page Source" and search for comments like:
<!-- Rendered with Timber -->
or file names ending in .twig in the comments.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Italian Support Forum.
Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.
La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.
Questo ticket contiene 5 risposte, ha 0 voci.
Ultimo aggiornamento da 1 settimana, 5 giorno fa.
Assistito da: Laura.