Problem: The client is experiencing issues with endpoint translations in WooCommerce Multilingual due to a mismatch in function signatures between WCML_Endpoints and WPML_Endpoints_Support. The example provided on the WPML documentation page uses a different method signature, causing incorrect language switching and missing translations. Solution: We recommend modifying the endpoint creation as follows to resolve the issue:
Additionally, ensure that you have updated to WooCommerce Multilingual & Multi-Currency 5.5.0 or later, which addresses this issue. You can update the plugin via Plugins > Add new on the "Commercial" tab by clicking on "Check for WPML Updates". Alternatively, you can download the latest version from your WPML account downloads page.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.
Problem: The function intended to add a page slug as a class to the body tag does not work on WPML translated versions of the site, causing issues with page-specific styling. Solution: To ensure the function works with WPML translated versions, you need to modify the function to use WPML's hooks for managing translations. Here is a step-by-step guide:
Before implementing this solution, ensure to back up your site and have FTP access ready as a precaution. This modification involves developer-level changes, which are usually beyond standard support scope. For more details on WPML's hooks, visit WPML Hooks Reference.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum.
Si cette solution ne résout pas votre problème ou semble dépassée, nous vous recommandons de vérifier les problèmes connus sur https://wpml.org/known-issues/, de vérifier la version des correctifs permanents et de confirmer que vous avez installé les dernières versions des thèmes et plugins. Si le problème persiste, n'hésitez pas à ouvrir un nouveau ticket de support sur notre forum de support.
Problem: Sie nutzen ACF Felder (Checkboxen) für Beiträge, die Sie manuell im Quellcode übersetzen. Seit der Umstellung auf automatische Übersetzung werden einige ACF Felder nicht mehr im Frontend angezeigt. Die Feldgruppen sind in den WPML-Einstellungen auf 'nicht übersetzbar' gesetzt, und die Felder auf 'kopieren'.
Solution: Stellen Sie sicher, dass die Feldgruppen immer auf 'Nicht übersetzbar' stehen. Für Checkbox-Felder sollte, abhängig vom verwendeten Editor, 'Kopieren' oder 'Einmal kopieren' gewählt werden. Die 'Choices' der Felder sollten sich mit der WPML String-Übersetzung übersetzen lassen. Verwenden Sie Wert-Schlüssel statt sichtbarer Labels in Ihrem ACF-Feld, z.B. 'haircut : Haare schneiden' und 'blowdry : Föhnen'. Passen Sie Ihren PHP-Code entsprechend an, um die Werte abzufragen:
Falls diese Lösung für Sie nicht relevant ist, weil sie veraltet ist oder nicht auf Ihren Fall zutrifft, empfehlen wir Ihnen, ein neues Support-Ticket zu öffnen. Wir empfehlen auch, die bekannten Probleme zu überprüfen, die Version der dauerhaften Lösung zu verifizieren und zu bestätigen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben.
Problem: Você está tentando adicionar mais um idioma traduzido no seu site e enfrenta dois problemas: a tradução de 1119 páginas de Português para Inglês não começou após 15 horas, e a ferramenta do WPML indica que a tradução de Português para Espanhol precisa ser feita, mas a página já está traduzida. Solution: Primeiro, certifique-se de ter um backup completo do seu site. Em seguida, siga estes passos: 1. Acesse WPML > Support > Troubleshooting e clique em "Cancel in-progress automatic translation jobs". 2. Vá em WPML > Translation Management e envie o conteúdo em pacotes menores para tradução automática. 3. Envie também as páginas já traduzidas ao espanhol. Você não será cobrado novamente por elas e o status deve se atualizar. Além disso, o problema de tradução automática que não ocorre pode ser devido a um erro no código do tema filho, especificamente na linha 206 do arquivo functions.php. O erro é:
Cannot use object of type WP_Error as array
. Recomendamos que você entre em contato com o autor do código para que ele faça os ajustes necessários. Se essas soluções não resolverem o problema ou se ele persistir, recomendamos que verifique os problemas conhecidos, confirme que você instalou as versões mais recentes dos temas e plugins, e se necessário, abra um novo ticket de suporte aqui.
Problem: You are trying to set the width of the language selector in the menu to less than the default minimum width of 200 px when using flags only. This issue arises because the 'Menu language switcher' configuration in the 'Languages' section does not apply changes when adding a language switcher to the beginning or end of an existing menu. Additionally, the menu selector does not detect and list new navigation blocks. Solution: The client inserted a class in an outer element of the language selector and applying custom CSS to adjust the width. This approach allows you to override the default settings and achieve the desired width for your language selector. If you're experiencing difficulties with this solution or if it does not fully address your issue, please check our related known issues and verify that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket for further assistance. You can do so at our support forum.
Problema: Il cliente desidera rendere cliccabile la bandierina della seconda lingua nella top bar del suo sito. Attualmente, è possibile cliccare solo il 'padding' attorno alla bandierina, ma non direttamente su di essa. Soluzione: Innanzitutto, è consigliabile verificare se il problema deriva dal tema attualmente in uso, cambiando tema per vedere se il comportamento del selettore di lingua cambia. Se il problema persiste, si può applicare il seguente codice CSS per rendere la bandierina cliccabile:
/* Rendi cliccabile tutta l'area della bandiera */<br />.wpml-ls-flag {<br /> pointer-events: auto;<br /> z-index: 10;<br /> position: relative;<br />}<br /><br />/* Evita che l'icona della freccia intercetti i clic */<br />.sub-arrow {<br /> pointer-events: none;<br />}<br /><br />/* Aumenta lo spazio cliccabile intorno alla bandiera */<br />.wpml-ls-flag {<br /> padding: 4px;<br /> display: inline-block;<br />}
Se il codice non risolve il problema, si consiglia di contattare il supporto del tema per assistenza su codice personalizzato.
Questa soluzione potrebbe non essere più rilevante a causa di aggiornamenti o modifiche future. Se il problema persiste, si consiglia di visitare la pagina dei problemi noti, verificare la versione della soluzione permanente e assicurarsi di avere installato le ultime versioni di temi e plugin. In caso di ulteriori difficoltà, si prega di aprire un nuovo ticket di supporto.