Support » Plugin: Ajax Search Lite » About the search results can be linked to the part

  • Is there any way to make the search results, click the link part of the page, not only the title can click, the entire result can click?

    Search for mercury, the title of mercury appears, explanatory text, pictures, then not only the title of mercury can be clicked, the mercury caption, the picture can also be linked to mercury this article

    Or this part of the code can only solve it over there?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams



    Unfortunately that is not possible. Basically, the search performs a database query, looking for the keywords, then the database returns the individual items as results. However, there is no information about where exactly the matches are within the content.

    The only possible solution I can think of in theory would be a custom funtions, that would go through all the results, then look for the proper HTML elements, recognize their IDs, and then try matching the keywords against them. Then append the ID as a hash-tag to the result URL. It is just a theory though, it could be much more difficult than this.

Viewing 1 replies (of 1 total)
  • The topic ‘About the search results can be linked to the part’ is closed to new replies.