the facet counts in the braces should be inside a span with a special class

Tagged:
  • Murat
    Participant
    1 year, 11 months ago #23168

    the facets of WPSOLR showing as:
    attribute (count)
    should rather be
    attribute <span class=wpsolr_facet_count>(count)</span>
    ——
    this would allow further styling of product counts via css

    wpsolr
    Keymaster
    1 year, 11 months ago #23170

    You can override the facet item template in screen 2.6.
    Replace the template “Facets list element name with #results” default value:
    %s (%d)
    with
    %s <span class="my-class-name">(%d)</span>

    Murat
    Participant
    1 year, 11 months ago #23171

    Lovely, worked like magic.
    earlier i hacked the class-wpsolr-data-facets.php to achieve that effect.
    screen 2.6 saved my day – big thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.