Search API Facet API Add class to Facet Counter


Out of the box in the Facetapi you get the annoying counter without a class wrapper. This means you can't theme or hide it. Add this to the preprocess to template.php

Get raw version
  1. function mytheme_facetapi_count($variables) {
  2. return '<span class="counter">(' . (int) $variables['count'] . ')</span>';
  3. }