Este usuario no tiene temas favoritos.
Temas favoritos del foro
Temas del foro creados
Estado |
Tema
|
Colaborador | Voces | Entradas | Frescura |
---|---|---|---|---|---|
Language Switcher Block has no width/height attributes for language flags
Iniciado por: Matthias
en: English Support
Problem: I'm facing an issue where Google PageSpeed Insights is flagging images without width/height attributes. This problem arises with both built-in svg flags and custom png flags in the language switcher plugin, as shown in my attached screenshot. Solution: Modify the code in `wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Blocks/LanguageSwitcher/Render.php`. Specifically, in the method `\WPML\BlockEditor\Blocks\LanguageSwitcher\Render::createLanguageItemNode`, update the code to set the 'src', 'width', and 'height' attributes for the flags, ensuring that the 'width' and 'height' values are numerical without any units like 'px'. The updated code snippet provided should resolve the issue with Google PageSpeed Insights flagging the images. Relevant Documentation: |
2 | 11 | hace 4 meses, 3 semanas | ||
There is only Microsoft available as automatic translation engine
Iniciado por: Matthias en: Chat Support |
1 | 2 |
hace 7 meses
|
||
Translation disappears after editing
Iniciado por: Matthias en: English Support |
2 | 4 |
hace 3 años, 1 mes
Matthias |
||
String Translation: Can't find form fields.
Iniciado por: Matthias en: Unterstützung in Deutsch |
2 | 2 | hace 3 años, 4 meses | ||
Automatic Translation stopped working
Iniciado por: Matthias en: English Support |
2 | 5 |
hace 4 años, 4 meses
Matthias |