למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
Translated code output with certified theme is not correct
נפתח על ידי: andreasH-89
ב: 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 | לפני חודש 1, שבוע 2 | |
|
Ticket answer
נפתח על ידי: andreasH-89 ב: Chat Support |
|
1 | 4 | לפני חודש 1, שבוע 2 | |
|
WPML Multi Currency – Automatic Tax calculation although conversion 1 EUR = 1 CHF
נפתח על ידי: andreasH-89 ב: Chat Support |
|
1 | 4 | לפני חודש 5 | |
|
WPML String Translation: Theme Primary Color
נפתח על ידי: andreasH-89 ב: Unterstützung in Deutsch |
|
2 | 11 | לפני שנה 4, חודש 7 | |
|
WPML Fallback Sprache – Inhalt wird nicht angezeigt
נפתח על ידי: andreasH-89 ב: Unterstützung in Deutsch |
|
2 | 7 |
לפני שנה 4, חודש 8
andreasH-89 |