Swish Docs
Go to websiteInstall now
  • Swish Documentation
  • GETTING STARTED
    • Getting Started
  • THEME EXTENSIONS
    • App Settings
    • Collection Buttons
    • Floating Wishlist Link
    • Product Page Buttons
    • Wishlist Page
  • CUSTOMIZATIONS
    • Code Editor
    • Custom Wishlist Page
    • Instant Header Link
    • Custom Colour Swatches
    • Save for Later Button
    • Wishlist Notifications
  • INTEGRATIONS
    • Swish API
    • Klaviyo Integration
      • Klaviyo Integration Setup
      • Configuring Events In Swish
      • Testing Events
      • Setting Up Klaviyo Flows
        • Wishlist Welcome Flow
        • Wishlist Reminder Flow
        • Low In Stock Flow
        • Back In Stock Flow
        • Price Drop Flow
      • Configuring Email Content
        • Flows and Events
        • Inserting A Single Product Into An Email Template
        • Inserting Multiple Products Into An Email Template
    • Google Analytics
    • Meta Pixel
    • Maestra
Powered by GitBook
On this page
  • Style
  • Position
  • Offset
  • Background
  • Shadow
  • Icon
  • Search & filter app preset
  • Manual setup
  1. THEME EXTENSIONS

Collection Buttons

Wishlist buttons for product collections.

PreviousApp SettingsNextFloating Wishlist Link

Last updated 4 months ago

These buttons will float on top of the product images. Our collection buttons work straight out of the box for all current themes from the official Shopify theme store. If your theme is not listed in our presets, or for some reason isn’t compatible, we will manually add some code to make this work.

Requires the correct theme preset in App Settings

Most themes from the Shopify theme store will work with our Theme Presets. Some themes may require a manual step to enable the Collection Buttons.

Style

Select a Wishlist button style. This uses the global and values from .

Position

Position the floating button relative to the product image (e.g. bottom right corner).

Offset

Offset the the floating button position.

  • Horizontal offset Negative values move the button left, positive values move the button right.

  • Vertical offset Negative values move the button down, positive values move the button up.

Background

Collection buttons will always have a clickable area of 48px width and height. This helps especially on touch devices to make sure the buttons are easy to use. However, you can adjust the visible background size and styling without effecting the clickable area.

Shadow

Icon

Search & filter app preset

We have presets for popular collection filter and search apps to inject our Wishlist buttons into their code.

  • AI Search, Filter & Recommend by Boost

  • Algolia Search and Discovery

  • Smart Product Filter & Search by Globo

  • Smart Search Bar & Filters by Searchanise

  • Smart Search & Product Filter by SoBooster

Manual setup

To manually setup Wishlist buttons for your collections, every button requires two things:

  • Product link The product link is used to connect the Wishlist button to a specific product/variant.

  • Reference element The Wishlist button will float over this element (e.g. product image).

Product link selector

.card .card__heading > .full-unstyled-link[href*="/products/"]

Floating reference

The reference element is defined in a single line of JavaScript code. The code gets a single argument named target, which is a light wrapper around the product link. If you want the buttons to float over the product link element, you can just set this value to target.

In case you want to float the Wishlist button over another element, use these chain-able methods to reference another element.

target.closest(".card").find(".card__media")

Adds a shadow to the collection button. This uses the global values from .

Adjust the Wishlist button icon style. Icons will use the global values from .

In some cases a is required.

The product link is defined by a , which points to an anchor element with a product page href. We recommend to be as specific as possible with this selector to avoid injecting the button in unwanted places. We often use a selector with a pattern match to reference product links.

closest(selector: string) Query a parent html element.

find(selector: string) Query a child html element.

shadow
app settings
colour
app settings
manual setup
CSS selector
Learn more
Learn more
colour
button
app settings
collection-style.png
collection-background.png
collection-icon.png