ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
| สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
|---|---|---|---|---|---|
|
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 month, 3 weeks มาแล้ว | |
|
WPML Multi Currency – Automatic Tax calculation although conversion 1 EUR = 1 CHF
เริ่มโดย: andreasH-89 ใน: Chat Support |
|
1 | 4 | 5 months, 1 week มาแล้ว | |
|
WPML String Translation: Theme Primary Color
เริ่มโดย: andreasH-89 ใน: Unterstützung in Deutsch |
|
2 | 11 | 4 years, 8 months มาแล้ว | |
|
WPML Fallback Sprache – Inhalt wird nicht angezeigt
เริ่มโดย: andreasH-89 ใน: Unterstützung in Deutsch |
|
2 | 7 |
4 years, 8 months มาแล้ว
andreasH-89 |