New Landing How can we help? Themeforest Theme Support Dante sf-shortcode issue WPML second language

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Dante
  • #155191
    r3style
    Member
    Post count: 47

    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.
    Thanks

    #155254
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide the url to that page where you are facing the issue?
    Are you using WPML Media plugin?

    -Rui

    #155280
    r3style
    Member
    Post count: 47
    This reply has been marked as private.
    #155288
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you try to regenerate all thumbnails using the plugin below?

    Regenerate Thumbnails

    -Rui

    #155292
    r3style
    Member
    Post count: 47

    Regenerate All Thumbnails,but Nothing changes.

    #155296
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    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

    #155361
    r3style
    Member
    Post count: 47

    I 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?

    #155370
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Not sure about that. Let’s wait for the development team reply.
    Thanks

    -Rui

    #155415
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Thank you for letting us know – we’ve adjusted this for the next update.

    – Ed

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register