The Popular Searches [Better Search] widget displays a heatmap of searches made on your site. More popular terms appear larger and use the “hot” color, while less popular terms appear smaller and use the “cold” color.
Each term links to the search results page for that query.
Add the widget
- Go to Appearance > Widgets.
- Add the “Popular Searches [Better Search]” to a widget area.
- Enter a widget title.
- Choose Overall or Custom time period.
- If you choose Custom time period, enter the number of days to include.
For example, 7 shows searches from the last seven days.
Change the default heatmap settings
Go to Better Search > Settings, then click the Heatmap tab.
The main heatmap settings are:
- Number of search terms to display, defaults to 20
- Font size of the least popular search term defaults to 10pt
- Font size of most popular search term, defaults to 20pt
- Color of the least popular search term, defaults to
#cccccc - Color of the most popular search term, defaults to
#000000 - Text to include before each search term
- Text to include after each search term
- Open links in a new window
- Add nofollow to links
These settings apply to the widget and shortcode unless overridden with code.
Use the shortcode
Display the heatmap in a post or page:
Display searches from the last seven days:
Customize the number, size, and colors:
Common attributes:
Customize the widget with code
Use the widget_bsearch_heatmap_argsOpens in a new window filter to override the widget output:
Style the heatmap
Each search term uses the bsearch_heatmap_link class. The widget wrapper uses widget_bsearch_pop.
If counts are enabled with show_count, use:




