Show more facet items if requested

  • pseudo visitor
    Participant
    # 12 months ago

    Could you add an option on the facets to show an limited amount of facet items, but let the visitor see more if requested?

    Like a button “see more” for instance.

    wpsolr
    Keymaster
    # 12 months ago

    This is a very reasonable demand indeed for websites with lots of facet content, like with product attributes colors for instance.

    It can be done with some css, by adding an
    overflow: scroll;

    (This will add a scrollbar to the facet)

    See https://developer.mozilla.org/fr/docs/Web/CSS/overflow

    Or, more simply, you could use the select box, or even select2 box, layout on your facet.

    Facet with Select2 layout

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

You must be logged in to reply to this topic.