Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Quick search results get on top


Hi,
https://preview.keenthemes.com/metronic8/demo31/index.html?mode=light&_ga=2.66994599.884446695.1673852315-1884776718.1653547987 I have this theme. In the quick search of this page, Can I make the search result to be come on top of the result? As an example, If I search Ana Clark on the search, Can I get the search result into first ?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Could you please clarify? Do you like to scroll to the first item in the results scroll bar ? Please note that the quick search is supposed to get the real result from the server via Ajax and just display in the dropdown.

Regards.



Hi,

When I search a user, I want that exact matching search result to be appeared on top of the result.

Did you get that ?



Hi,

This logic should be handled on your server-side while you generate the result HTML code. KTSearch only helps with sending the query and displaying the processed results to the user. It does not parse the results, instead the results should be formatted as per your requirements in your backend end code,

Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(