Search full width – how to set blog post photo ratio

This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago ago by Olga Barlow

  • Avatar: Aleksander Habuda
    TonyM
    Participant
    March 22, 2021 at 21:18

    Hello,

    By default, the search full width shows posts with squares photo (scales from 150×150). My cover photos on posts have a different ratio – horizontal. Images are clipped in the search engine. How can I fix it?

    EDIT:
    I found it. Xstore core. Path: /plugins/et-core-plugin/app/models/customizer/class-ajax-search.php

    Line: 314

    'img' => get_the_post_thumbnail_url( $post->ID, 'thumbnail' ),

    change to:

    'img' => get_the_post_thumbnail_url( $post->ID, 'medium' ),

    I know after updating the changes disappeared. I will propose a fix on future request.

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    March 23, 2021 at 10:55

    Hello,

    You can change the size of the thumbnails and disable the crop option in Settings > Media https://prnt.sc/10tblw2

    Regards

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

The issue related to '‘Search full width – how to set blog post photo ratio’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

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