Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Featured Image Plugin
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 5 years, 6 months ago.
- AuthorPosts
- May 16, 2018 at 11:07 pm #17894
Hi I am currently using following url
https://wordpress.org/plugins/featured-image-from-url/but if I use this plugin, I couldn’t see thumnail whenb I search some post from ajax search pro plugin.
So I asked to developer and he said that in lite version
I had to change something like following:
Hi, Jinhee.I found a solution for that.
Open ajax-search-lite/includes/views/result.php
And replace the line 42:
style=’background-image: url(“<?php echo $r->image; ?>”);’>
By
style=’background-image: url(“<?php echo fifu_main_image_url($r->id); ?>”);’>So Would you beable to test this with this plugin and update in next version?
because I really want this plugin with ajax search pro so I can save my server data.
thanksMay 17, 2018 at 12:11 pm #17899Hi,
There is a much easier solution, that will work with both plugin versions, and will retain during updates as well. The developer correctly identified the files, and since there is a very clever function in his plugin to get the image URL, I can easily construct a custom code based on that.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
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.