Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    The plugin intercepts all the search boxes on website, and adds to them the “search in place” behavior, however with some simple changes it is possible to activate the “search in place” behavior for only one of them.

    For example, if you assign a class name to the search boxes you want intercepts, and edit our plugin’s code as follows:

    1. Open the “codepeople_shearch_in_place.js” file with the text editor your choice.

    2. Go to the snippet of code:

    input[name='s']

    and replaces the selector with the new class name. For example, if the class name assigned to the field is myclass, the previous selection should be replaced by:

    .myclass

    3. Remember to clear the browser’s cache after edit the online files.

    The search in place will be associated only to the corresponding search boxes.

    Best regards.

    Thread Starter st3llap

    (@st3llap)

    Thank you for your reply.
    Now this plugin works only for one category.
    Does your reply also mean that my first question is not doable (dynamically display search results related to the category template the searchfield is)?

    Thanks!

    Plugin Author codepeople

    (@codepeople)

    Hi,

    The feature you are requesting is not included in the current version of the plugin, and requires a more complex customization to implement it. If the feature is really important to your project, do not hesitate in request a custom coding service through my private support page:

    https://wordpress.dwbooster.com/support

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search in current category’ is closed to new replies.