למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
Media translation
נפתח על ידי: ivanV-41
ב: English Support
Problem: themify\themify-builder\classes\class-themify-builder-model.php . public static function get_alt_by_url(string $image_url):string {
$attachment_id = themify_get_attachment_id_from_url($image_url);
if ($attachment_id && ($alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true))) {
return $alt;
}
return '';
}with the following updated code: public static function get_alt_by_url(string $image_url):string {
$attachment_id = themify_get_attachment_id_from_url($image_url);
// WPML Workaround for wpmlsupp-12600
if ( class_exists('Sitepress') ) {
$current_lang = apply_filters( 'wpml_current_language', NULL );
$attachment_id = apply_filters( 'wpml_object_id', $attachment_id, 'post', TRUE, $current_lang );
}
if ($attachment_id && ($alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true))) {
return $alt;
}
return '';
}After making these changes, check the translated page and inspect the image alt texts. Please note that this solution might be outdated or not applicable to your specific case. If the issue persists, 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 needed, please open a new support ticket at WPML support forum. |
|
1 | 14 | לפני חודש 10 | |
|
I need help with you making your program to work
נפתח על ידי: ivanV-41 ב: Chat Support |
|
1 | 2 |
לפני שנה 1, חודש 4
|
|
|
Enlaces que no funcionan al cambiar de idioma
נפתח על ידי: ivanV-41 ב: Soporte en español |
1 | 2 | לפני שנה 1, חודש 5 |