• Hello,

    My navigation is a fixed bar at the top of the page and that’s also where the search field is.

    The search results appear where they’re supposed to be just fine, and when you scroll up or down on the page, they stay right with the search field.

    The problem arises when you close out of the search results, scroll to a different part of the page, and then try to reenter a search query, the results don’t appear at all. The only way to get it to work again is to refresh the page. (You can be anywhere on the page, but it only works the first time until you scroll)

    position: absolute resolves the issue of the results not reappearing, but when you have the search results open and then scroll, the results stay where they currently are on the page which looks odd.

    I’m assuming this has to do with the positioning offset, but I’m not a javascript wiz so I can’t figure it out on my own.

    I’d provide a link so you could see it for yourself, but my theme is currently in being built and not live yet.

    If position: fixed won’t work, then I’ll just have to settle for absolute, but I’d rather not. Any advice?

    Edit: It appears that is doesn’t work for either absolute or fixed position when you repeat the exact same search query. If you enter a completely different search each time then the results are positioned correctly.

    Thanks

    https://www.ads-software.com/extend/plugins/daves-wordpress-live-search/

  • The topic ‘[Plugin: Dave's WordPress Live Search] Search results and fixed position’ is closed to new replies.