This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Mobile theme and a few other questions

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Mobile theme and a few other questions Reply To: Mobile theme and a few other questions

#18040
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

Thank you for your kind words, and the proper details, it helps me a lot!

I just checked the site on a mobile device, but I am seeing the plugin in that view as well: https://i.imgur.com/3KcUhpo.png
I guess you are not using the mobile theme anymore?
If it is a whole different theme, then you might have to replace the search form there manually, I guess because it does not use the default ‘get_search_form()’ method as the desktop version. If you want, I can take a look at it via FTP to see if I can find the file responsible, but right now I’m getting the same layout for mobile devices as well, so I am not sure where to look.

Results without an image also don’t appear to be using the default image I’ve uploaded.
Indeed, it is an issue with the current release. It affects most of the non post-type results. I have added a custom code to the functions.php file via FTP in your theme directory to bypass the issue, until it is resolved in the upcoming release. For future reference, the custom code can be found here.

The tags/categories are also not showing images although some of them have images
It happens, because by default, there is no way to associate images with categoris/terms in WordPress. I checked the ‘LELO’ tag, and I see that there is a custom content editor, which allows adding media attachments to the term descriptions.
Interesting solution, luckily it is not too difficult to get those images. The custom code I added to resolve the previous issue includes a solution for this as well.

Well, the category results are from a separate query, so they are not mixed up with the rest of the results. You can however change their position here: https://i.imgur.com/FAWNZEz.png

It looks like I’m not supposed to use the search settings (filter by category, search only in content, etc) when I’m using the index engine, is that true? Is this something that might change in the future?
That is not true, the filters does work with both engines 🙂

is there a way to display the image under the title of the post in results?
I think so, using a custom CSS code. Apply this code to your theme custom CSS field (if it supports it) or use the custom CSS field on the search plugin back-end.

[html].asp_content {
display: flex;
flex-wrap: wrap;
}

.asp_content h3 {
order: -1;
}

.asp_content .asp_res_image_url,
.asp_content .asp_image {
width: 100% !important;
order: 0;
}[/html]

After that, it should look something like this: https://i.imgur.com/0cndb7K.png
I think this is as close as it gets.

I hope this helps!