Use this pattern when you want precise placement in your navbar or mobile menu
instead of a single page-level container.
How navbar placement works
Webless renders the search button exactly where you place the container element. Use separate containers for desktop and mobile so each viewport can have its own layout.Add the desktop container
Place the desktop container exactly where you want the desktop search button
to appear.Common placements include the right side of the header, a navigation list,
or a dedicated actions area.
Add the mobile container
Place the mobile container where you want the mobile or tablet trigger to
appear.Common placements include a hamburger menu, a mobile actions row, or the top
of the mobile navigation drawer.
Placement examples
Desktop header placement
Mobile menu placement
Full example
Can I place the containers anywhere?
Can I place the containers anywhere?
Yes. The button renders exactly where the container sits in the DOM, so place
each container where it best fits your design.
Can I skip one of the containers?
Can I skip one of the containers?
Yes. If you only want a desktop or mobile entry point, install only the
relevant container. Just make sure the remaining entry point still matches
your responsive layout.
How do I exclude specific pages?
How do I exclude specific pages?
Remove the containers and the script from the templates where Webless should
not render.
