Cet utilisateur n'a aucun sujet favori.
Sujets de forum favoris
Sujets de forum créés
| Statut |
Sujet
|
Support | Voix | Messages | Fraîcheur |
|---|---|---|---|---|---|
|
Translated code output with certified theme is not correct
Commencé par : andreasH-89
dans : English Support
Problem: functions.php file: add_filter( 'do_shortcode_tag', function( $out, $tag, $atts ) {<br /> if ( $tag !== 'vc_icon' || empty( $atts['icon_image'] ) ) return $out;<br /> $att_id = (int) $atts['icon_image'];<br /> $path = get_attached_file( $att_id );<br /> if ( $path && preg_match('/\.svg$/i', $path) && file_exists($path) ) {<br /> $svg = file_get_contents($path);<br /> if ( $svg && strpos($out, '<img') !== false ) {<br /> $out = preg_replace('#<img[^>]+\.svg[^>]*>#i', $svg, $out, 1);<br /> }<br /> }<br /> return $out;<br />}, 10, 3 );This code checks if the shortcode being rendered is an icon widget that uses an image ID. If the image is an SVG file, it retrieves the SVG from the server and replaces the <wpml-config><br /> <shortcodes><br /> <shortcode><br /> <tag>vc_icon</tag><br /> <attributes><br /> <attribute encoding="allow_html_tags">title</attribute><br /> <attribute encoding="vc_link" type="link">link</attribute><br /> </attributes><br /> </shortcode><br /> </shortcodes><br /></wpml-config> After saving, please re-save both the original content and its translations to apply the changes. Please note that the solution provided might be outdated or not applicable to your specific case. We 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. If the issue persists, please open a new support ticket. |
|
0 | 7 | Il y a 1 mois et 3 semaines | |
|
Ticket answer
Commencé par : andreasH-89 dans : Chat Support |
|
1 | 4 | Il y a 1 mois et 4 semaines | |
|
WPML Multi Currency – Automatic Tax calculation although conversion 1 EUR = 1 CHF
Commencé par : andreasH-89 dans : Chat Support |
|
1 | 4 | Il y a 5 mois et 1 semaine | |
|
WPML String Translation: Theme Primary Color
Commencé par : andreasH-89 dans : Unterstützung in Deutsch |
|
2 | 11 | Il y a 4 années et 8 mois | |
|
WPML Fallback Sprache – Inhalt wird nicht angezeigt
Commencé par : andreasH-89 dans : Unterstützung in Deutsch |
|
2 | 7 |
Il y a 4 années et 8 mois
andreasH-89 |