WP-3590: fix the search and events classes in template.