How to make filters sticky?

The Sticky filters feature provides seamless navigation for your users by keeping the filters fixed in one place. This allows shoppers to easily return to the filters while scrolling through search results, reducing the time needed for purchases and preventing frustration. Let’s look into the settings and things to consider.

Setting up Sticky filters

The Sticky filters setting affects both filters for the Search Results Widget and Filters on Collections.

  1. Go to Search & Navigation > Search Result Widget > Content.
  2. In the Sticky filters section switch on the toggle.
  3. Select the devices for which you want to apply Sticky filters:
    • On desktop
    • On mobile
    • On desktop and mobile
Note

Sticky filters can be set up for both sidebar and top-section filters. However, a long list of sidebar filters makes the Sticky filters not noticeable on the storefront. In that case, you can either covert the filters’ position to the top or make the filters closed by default (Filters > Filters list > Settings > Other > Default desktop view).

Possible issues

  1. Sometimes, Sticky filters may overlap the website header. In such cases, you can set an indent equal to your header or reach out to our support.You can find the header’s width in the Elements tab when you open your browser’s dev tools:
    1. Press F12 or right-click on the header and select Inspect from the context menu.
    2. Hover over the header.
    3. A tooltip appears showing the dimensions (length x width). Note down the second number, which represents the width.

      header width for sticky filetrs indent

    4. Input this number in the indent settings: Search & Navigation > Search Result Widget > Content > Sticky filters > Sticky filters indent.

    If you encounter difficulties finding the header’s width, do not hesitate to contact us for assistance.

  2. In some themes, the website background is gradient. In such cases, the filters on mobile devices appear without a background. The elements of the Sticky filters will still function and be clickable.
Updated on March 15, 2024

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you

Let us improve this post!

Please tell us how we can improve this post

Related Articles

Back to top