Release date: 20 May 2026
This release improves the behaviour of the live suggestion dropdown when the search form is placed near the bottom of a page, such as in a website footer.
Added
- Added automatic dropdown positioning for live search suggestions.
- Added JavaScript detection to check available screen space before displaying suggestions.
- Added support for opening the suggestion dropdown upwards when there is not enough room below the search form.
- Added support for opening the suggestion dropdown downwards when there is enough space below.
- Added optional shortcode control for dropdown direction:
[cogio_search dropdown="auto"]
[cogio_search dropdown="up"]
[cogio_search dropdown="down"]
Changed
- The default dropdown behaviour is now auto.
- Search suggestions are now positioned based on the available viewport space.
- Suggestion dropdown styling has been updated to support both upward and downward positioning.
- Added a maximum dropdown height with internal scrolling to help avoid layout issues on smaller screens.
Fixed
- Fixed an issue where suggestion results could appear below a footer search form and cause extra white space to be added to the bottom of the page.
- Reduced the risk of the suggestions dropdown being cut off or awkwardly positioned when the search form appears near the bottom of the screen.
Notes
Existing shortcodes continue to work without changes:
[cogio_search]
The plugin will now automatically decide whether suggestions should open upwards or downwards. Manual dropdown settings remain available for edge cases where a specific layout needs forced behaviour.
