Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Thumbnail Size in Result Layout
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 7 months ago.
- AuthorPosts
- January 13, 2023 at 5:00 pm #40903
Hi there,
I am implementing a website for a client using the Ajax Search Pro plugin. I really love the flexibility of ASP but one thing I could not figure out: When using the Vertical Layout for showing result previews there are little thumbnails for each result. This is great but I recognized that the plugin is loading the full images instead of using the auto-generated thumbnails WP is generating when uploading images to the media library. This results in a lot of data to be transmitted and – depending on internet connection – quite long loading times for the result list. So I am wondering if there is a way of not loading the full images but instead using a smaller image size WP provides.
Would be great to be able to optimize this a little bit.
Cheers
JeremiasAttachments:
You must be logged in to view attached files.January 13, 2023 at 5:01 pm #40905Here is the code snippet where ASP is loading the full-size image for showing a result thumbnail:
<div class="asp_image" data-src="https://spieleratgeber.uxlove.de/wp-content/uploads/2022/11/dummy_hauptbild-1.png" style="background-image: url("https://spieleratgeber.uxlove.de/wp-content/uploads/2022/11/dummy_hauptbild-1.png");"> <div class="void"></div> </div>
January 16, 2023 at 12:53 pm #40918Hi,
Thank you very much for the details, it helps us a lot.
You can change the source image size under the Search Sources -> Image options panel: https://i.imgur.com/nFysco2.png
Best,
By default this image should be resized to a cached version, so additional you can check if the image cropping is also enabled here. In most cases this is not needed, if the thumbnail sizes are sufficiently small.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 19, 2023 at 11:49 am #40987Hi Ernest,
thanks a lot for this information, that’s very easy and helped me a lot. The ASP plugin is so feature-rich that I missed this option when searching through the tabs, sorry for that.
Best,
JeremiasJanuary 19, 2023 at 2:38 pm #40988You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.