Panoramica del problema
Quando usi Flatsome con WPML, alcuni testi non possono essere tradotti: gli orari di contatto dell’header e il suffisso del riassunto del blog nelle opzioni del tema, il nome e l’azienda dell’elemento Testimonial, il testo del pulsante dell’header e il titolo dell’elemento Products.
Soluzione alternativa
- Vai su WPMLImpostazioniConfigurazione XML personalizzata, aggiungi il seguente XML e salva:
XML
<wpml-config> <shortcodes> <shortcode> <tag>testimonial</tag> <attributes> <attribute>name</attribute> <attribute>company</attribute> <attribute type="link">link</attribute> </attributes> </shortcode> <shortcode> <tag>header_button</tag> <attributes> <attribute>text</attribute> <attribute type="link">link</attribute> </attributes> </shortcode> <shortcode> <tag>ux_products</tag> <attributes> <attribute>title</attribute> </attributes> </shortcode> </shortcodes> <admin-texts> <key name="theme_mods_flatsome"> <key name="contact_hours" /> <key name="blog_excerpt_suffix" /> </key> </admin-texts> </wpml-config>
- Traduci i testi delle opzioni del tema in WPMLTraduzione stringhe.
- Traduci di nuovo le pagine che usano questi elementi di UX Builder.