Ajax search thumbnail cropped - by yaronfa

This topic has 4 replies, 2 voices, and was last updated 6 years, 5 months ago ago by Rose Tyler

  • Avatar: yaronfa
    yaronfa
    Participant
    May 29, 2018 at 12:23

    Hello,

    1. We have an issue of cropped thumbnails in the ajax search results.
    For reproducing the problem, you can also search for ‘V2T’ or ‘amplidect’ (2rd and 6th result) and get the impression.

    2. Single product main image gallery – is it possible to keep the box size the same?
    Right now, when moving to the next image – the thumbnails go up/down according to the currently displayed image size, and the picture is displayed full size.
    I mean: is it possible the the product main image alway stay the same size, to prevent a lot of “movement” on the page?

    Thank you
    Yaron

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 29, 2018 at 13:38

    Hello,

    1. There is no option to change the size, only via additional customization in the source code (it is out of our support scope). Rewrite et_search_get_posts function (legenda/framework/theme-functions.php file) in functions.php of child theme and change this – http://prntscr.com/jjgg6z
    2. By default, there is no such possibility.

    Regards

    Avatar: yaronfa
    yaronfa
    Participant
    May 30, 2018 at 15:55

    Hi,

    1. I don’t think it is a solution because it will only increase the thumbnail size and not how it’s generated. I need the thumbnail to not crop the image. Do you know which function creates the thumbnail and what are its settings?

    2. Can you give me any instructions to change this by myself in code?

    Thanks
    Yaron

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 31, 2018 at 08:13

    Hello,

    1. The function which gets images by size is new_etheme_get_image and placed in legenda/framework/theme-functions.php
    we changed for you from
    http://prntscr.com/jow0s7
    to
    http://prntscr.com/jow107
    – legenda-child/functions.php file
    now image size is uncropped and squeezed by css http://prntscr.com/jow1w8
    http://prntscr.com/jow14y
    2. We rewrote one file via your child-theme
    legenda-child/woocommerce/single-product/product-image.php
    this value http://prntscr.com/jow4s2 was changed to false

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.