Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › sf-shortcode issue WPML second language
New Landing › How can we help? › Themeforest Theme Support › Dante › sf-shortcode issue WPML second language
- This topic has 8 replies, 3 voices, and was last updated 9 years by Swift Ideas – Ed.
-
Posted in: Dante
-
March 5, 2015 at 6:03 am #155191
WPML main language is Japanese, second language is English.
I used sf-shortcode main menu and footer.
[spb_products_mini asset_type=”recently-viewed” item_count=”9″ width=”1/1″ el_position=”first last”]
main language is natural:140px x 140px
<img src="https://www.exsample.jp/wp-content/uploads/2014/08/2911399_B_2_500.min_-140x140.jpg" width="140" height="140" alt="2911399_B_2_500.min" pagespeed_url_hash="1992197444">
second language is natural:500px x 600px
<img src="https://www.exsample.jp/wp-content/uploads/2014/08/2911399_B_2_500.min_.jpg" width="140" height="140" alt="2911399_B_2_500.min" pagespeed_url_hash="1133380547">
Please check your test site and fix to display cutout thumbnail second language.
ThanksMarch 5, 2015 at 10:47 am #155254Hi,
Can you provide the url to that page where you are facing the issue?
Are you using WPML Media plugin?-Rui
March 5, 2015 at 11:39 am #155280This reply has been marked as private.March 5, 2015 at 12:21 pm #155288March 5, 2015 at 12:39 pm #155292Regenerate All Thumbnails,but Nothing changes.
March 5, 2015 at 12:52 pm #155296Hi,
Not sure if it’s a theme issue or WPML configuration, will forward to the development team so they can have a look.
Thanks
-Rui
March 5, 2015 at 4:09 pm #155361I used this as reference.
https://wpml.org/forums/topic/no-featured-images-in-other-language/aq_resizer-1x.php & aq_resizer-2x.php
comment out this code//check if $img_url is local if(strpos( $url, home_url() ) === false) { $image = array ( 0 => $url, 1 => $width, 2 => $height ); return $image; }
and then
second language is natural:140px x 140px too.
<img src="https://www.exsample.jp/wp-content/uploads/2014/08/2911399_B_2_500.min_-140x140.jpg" width="140" height="140" alt="2911399_B_2_500.min" pagespeed_url_hash="1992197444">
Is this all right?
Should I edit anything sf-products.php too?if ( has_post_thumbnail() ) { $image_title = esc_attr( get_the_title( get_post_thumbnail_id() ) ); $image_link = wp_get_attachment_url( get_post_thumbnail_id() ); if ($image_link == "") { $image_link = "default"; } $image = sf_aq_resize( $image_link, 70, 70, true, false); if ($image) { $image_html = '<img src="'.$image[0].'" width="'.$image[1].'" height="'.$image[2].'" alt="'.$image_title.'" />'; } }
Or,
Do you have better solution?March 5, 2015 at 4:25 pm #155370Not sure about that. Let’s wait for the development team reply.
Thanks-Rui
March 5, 2015 at 10:26 pm #155415Thank you for letting us know – we’ve adjusted this for the next update.
– Ed
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.