Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Customization Requested
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 8 years, 11 months ago.
- AuthorPosts
- December 17, 2014 at 2:53 pm #3259
Seeking customization by you or at in the least pointer to where it can happen to change the search result links into modal popups, pointing to a popteam.php script… what would you charge to make this happen, or to give instructions for where to make it happen? Thank you the client is anxious.
December 18, 2014 at 1:19 pm #3273Hi!
I’m fully booked for the next 2 years, I can’t accept customization requests unfortunately.
You might want to look at using the filters, for example: https://wp-dreams.com/knowledge-base/numbering-the-results/
You can access and modify the results url with a code like:
add_filter( 'asp_results', 'asp_change_link_results', 1, 1 ); function asp_change_link_results( $results ) { foreach ($results as $k=>$v) { // Modify the post links $results[$k]->link = "your custom link here..."; } return $results; }
The HTML output is generated in the JS files from the ajax requests. For a modal window to work I guess you might need to change that as well. In file wp-content-plugins/ajax-search-pro/js/nomin/jquery.ajaxsearchpro.js you will find functions like: createVHResult, createIsotopicResult, createPolaroidResult
These are the ones responsible for creating one result for each layout.To apply JS changes you need to change the javascript source, because by default the minified-scoped version is used. You can do that on the compatibility settings submenu: https://i.imgur.com/E36LCZr.png
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.