Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Thumbnail Size in Result Layout
- This topic has 4 replies, 2 voices, and was last updated 3 years, 4 months ago by
Ernest Marcinko.
-
AuthorPosts
-
January 13, 2023 at 5:00 pm #40903
uxlove
ParticipantHi 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
JeremiasJanuary 13, 2023 at 5:01 pm #40905uxlove
ParticipantHere 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 #40918Ernest Marcinko
KeymasterHi,
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
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.January 19, 2023 at 11:49 am #40987uxlove
ParticipantHi 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 #40988Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.