Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Category Settings Column CSS + Media Preview Snippets
- This topic has 6 replies, 2 voices, and was last updated 6 years, 6 months ago by
nathanstiteler23.
-
AuthorPosts
-
November 5, 2019 at 6:58 pm #24542
nathanstiteler23
ParticipantHello – 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!
November 6, 2019 at 3:11 pm #24547Ernest Marcinko
KeymasterHi!
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.
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.November 12, 2019 at 10:17 pm #24598nathanstiteler23
ParticipantErnest – 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 #24615Ernest Marcinko
KeymasterHi 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.
November 25, 2019 at 5:46 pm #24740nathanstiteler23
ParticipantThanks 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!
November 26, 2019 at 2:01 pm #24748Ernest Marcinko
KeymasterHi!
Sure, by increasing the description length from the initial 130 characters, to something higher, like 9999 or so: https://i.imgur.com/gXYHwk0.png
November 26, 2019 at 7:24 pm #24758nathanstiteler23
ParticipantAwesome. Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.