Support » Plugin: Search by Algolia – Instant & Relevant results » Edit Image Size in Loop

  • Resolved maraki


    I am looking to edit this part of the post template in Algolia autocomplete:

     <# if ( data.images.thumbnail ) { #>
            <img class="suggestion-post-thumbnail" src="{{ data.images.thumbnail.url }}" alt="{{ data.post_title }}">
            <# } #>

    Instead of the featured image attached to the post (data.images.thumbnail.url), I would like Algolia to get the ‘medium’ version of the featured image.

    This is because, my featured images are very large and Algolia should use a smaller version for the small thumbnails shown on autocomplete.

    many thanks

    • This topic was modified 4 years, 11 months ago by maraki.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit Image Size in Loop’ is closed to new replies.