• Resolved Qilin

    (@qilin2000)


    Hello there,

    I have WooCommerce Storefront theme installed on my site, it didn’t work with this plugin at first, after adding the code below into functions.php,the plugin works fine on my desktop computer.

    add_filter( 'relevanssi_live_search_add_result_div', '__return_false' );

    But on my mobile phone there’s a problem. On the mobile version of the Storefront theme, the search bar is stuck at the bottom of the screen. When you type something, the search results pop up below it, and they go off the screen! You can’t see them unless you drag them up manually. This is annoying because you have to do it every time. Wouldn’t it be better if the search results automatically appeared above the search bar on mobile? Is there a way to code this? Storefront is a widely used free theme that deserves to be boosted for compatibility.

    By the way, this is a great plugin, especially because we can freely customize the search-results.php file. It gives us a lot of control over how things look!

    Thanks in advance.

    Qilin

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mikko Saari

    (@msaari)

    The Storefront mobile form is indeed quite inconvenient for Relevanssi Live Ajax Search.

    Placing the search results above the search bar is difficult. When the plugin is calculating where to place the results div, it doesn’t know how big it will be. So where to place it when placing it above the search bar? That’s a tough problem to solve.

    I would recommend ditching the default search bar and instead looking for a modal search solution. That would be fairly easy to make work with Live Ajax Search.

    Thread Starter Qilin

    (@qilin2000)

    What is a modal search solution, can you explain it in detail?

    Plugin Author Mikko Saari

    (@msaari)

    Modal search is where the search appears over the content. Here’s a simple example.

    Thread Starter Qilin

    (@qilin2000)

    Looks cool, but seems like it would require a lot of coding, which is beyond my capabilities. I’ll look for a simpler and easier way to fix this issue. Thanks.

    Plugin Author Mikko Saari

    (@msaari)

    There are plugin solutions for this: the SearchWP Modal Search Form plugin, for example, is very easy to use.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.