I want a separate searchbar below header in mobile view.

Please share me code with customizations. I have shared a video it should be like that.

To add a separate search bar below the header in the mobile view of your website, you can follow these steps:

  1. Identify the appropriate HTML element or section where you want to add the search bar. For example, you can use a <div> element with a specific class to target it with CSS.

  2. Add the following HTML code to create the search bar:


  

In the code above, the search bar is wrapped inside a <div> element with the class name “mobile-search-bar”. The form element contains an input field for the search query (<input type="text">) and a submit button (<button type="submit">).

  1. Apply CSS to position and style the search bar. Add the following CSS code to your theme’s CSS file or the Additional CSS section of the theme editor:
@media (max-width: 767px) {
  .mobile-search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

  .mobile-search-bar input[type="text"] {
    width: 80%;
    max-width: 200px;
    padding: 5px;
  }

  .mobile-search-bar button[type="submit"] {
    margin-left: 10px;
    padding: 5px 10px;
  }
}
​

it should show matched items below.