Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Category Settings Column CSS + Media Preview Snippets
This topic contains 6 replies, has 2 voices, and was last updated by nathanstiteler23 3 years, 6 months ago.
- AuthorPosts
- November 5, 2019 at 6:58 pm #24542
Hello – I have a couple items to ask you about:
FYI – the site is currently locked, so you can access with:
username: tcsba
password: Thund3rb1rd1) I opened a ticket a while back about making the filter by categories in three columns and you sent me some CSS code that worked for this adjustment. I attempted the 4.17 update, and that CSS code no longer worked. Is there any chance you could send me updated CSS for that?
2) We are using the Ajax Search Pro to search through a number of media files that are mostly PDFs, but also have some docx files. Currently I have the index table set and results are pulling pretty well! However, I wondered is it possible to add a preview text snippet in the search results of where a specific keyword was found in the document itself? This would give the user to preview the information before they open the document to see if they are accessing the right information. (I added a screenshot of the search results)
Thanks for your help!
Attachments:
You must be logged in to view attached files.November 6, 2019 at 3:11 pm #24547Hi!
1. Try this variation of the previous code:
fieldset.asp_filter_tax { min-width: 100% !important; } fieldset.asp_filter_tax>div .asp_simplebar-content { -webkit-column-count: 2; /* Old Chrome, Safari and Opera */ -moz-column-count: 2; /* Old Firefox */ column-count: 2; column-width: 50% !important; max-height: unset !important; height: 500px; } fieldset.asp_filter_tax .asp_option .asp_option_inner, fieldset.asp_filter_tax .asp_option .asp_option_label { display: inline-block !important; vertical-align: middle; }
2. I’m afraid this is not possible. The plugin does not store the exact text from the documents, it only tries to get the keywords individually, and store them.
Best,
You could add perhaps a custom field, with the excerpt text from the document, then use that field within either the secondary content or the advanced content field a as source for the text.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 12, 2019 at 10:17 pm #24598Ernest – Thanks for your help and the info here! My next question is: is it possible to auto-generate the excerpt text from media documents? Or will these have to manually added for every file?
Thanks again!
– NathanNovember 18, 2019 at 4:05 pm #24615Hi Nathan,
I’m afraid this is not possible – unless there is a different plugin for that. I am not sure to be honest, there might be some sort of an export/import plugin that supports extracting contents to fields.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 25, 2019 at 5:46 pm #24740Thanks for the info Ernest! I think we may be able to have add a workaround by adding captions to the resources/media files that pertain to the files.
I do have another question for you: right now only the first line of the caption is showing in the search results. Is there anyway we could show the entire caption there (image attached).
Thanks again for all of your help!
Attachments:
You must be logged in to view attached files.November 26, 2019 at 2:01 pm #24748Hi!
Sure, by increasing the description length from the initial 130 characters, to something higher, like 9999 or so: https://i.imgur.com/gXYHwk0.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 26, 2019 at 7:24 pm #24758Awesome. Thanks!
- AuthorPosts
You must be logged in to reply to this topic.