• Resolved phoenixgalerie

    (@phoenixgalerie)


    I have setup the product page so all images are cropped into a square, this looks good.
    on the search result page and the product slider the images are still shown uncroppped (the way i photographed it), if i turn the camera 90 degrees the pictures are much longer.

    Is it possible to crop the images for these 2 pages also ?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    To change image size on search results, please add this code snippet to your functions.php file of Sinatra Child:

    function custom_post_thumbnail_image_size( $size ) {
    	
    	if ( is_search() && has_image_size( 'woocommerce_thumbnail' ) ) {
    		return 'woocommerce_thumbnail';
    	}
    
    	return $size;
    }
    add_filter( 'sinatra_post_thumbnail_default_size', 'custom_post_thumbnail_image_size' );

    To adjust the Product Slider images, go to WCPS ??Edit Slider ??Elements ??Expand Thumbnail options and choose “WooCommerce Thumbnail” for Slider Thumbnail Size. (Screenshot)

    Thread Starter phoenixgalerie

    (@phoenixgalerie)

    Hello,

    Thank you again, it works perfectly now!

    Thread Starter phoenixgalerie

    (@phoenixgalerie)

    Is it also possible to change the layout of the search results a bit,
    so it shows only the tilte the price and the Rating.
    Just like in the product slider on the home page ?

    Branko

    (@brankoconjic)

    Hey @phoenixgalerie,

    Unfortunately, this is not possible.

    Thread Starter phoenixgalerie

    (@phoenixgalerie)

    Ok no problem.

    Theme Author sinatrateam

    (@sinatrateam)

    Resolving this issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Crop images in search and product silder’ is closed to new replies.