image resize in search results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support image resize in search results

This topic contains 4 replies, has 2 voices, and was last updated by nutriodol nutriodol 8 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7071
    nutriodol
    nutriodol
    Participant

    Hi Ernest,

    Is there any chance to help fixing or pointing to a setting for an image resize in search results.

    It seems to be wrong only for shop logos?

    Thank you,

    Pavel

    Attachments:
    You must be logged in to view attached files.
    #7073
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    What exactly is the problem with the resizing there?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #7074
    nutriodol
    nutriodol
    Participant

    Basically it does not resize the whole company logo.

    Please, see the image attached.

    Attachments:
    You must be logged in to view attached files.
    #7076
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I see what you mean now. Not the whole image is displayed.
    It’s because it fills the whole result area with the image resized by the exact ratio. It’s so called “cover” background mode.

    I believe you can force the image to display as “whole” with the following CSS:

    
    .results .item .asp_item_img {
        background-size: contain !important;
        background-repeat: no-repeat !important;
    }
    

    that should force the image to the center without repeating.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #7082
    nutriodol
    nutriodol
    Participant

    Perfect results.

    Thank you Ernest,

    Have a lovely day.

    Pavel

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

You must be logged in to reply to this topic.