Swiffle Grid — Block Setup Reference

Last updated: July 2026

All settings are available in both Gutenberg and Elementor. Parameters marked Laptop apply to desktop/tablet, Phone to mobile. The Source column shows which data source(s) expose the setting — All means it applies regardless of source.

📦 Data
SettingDescriptionDeviceDefault
Site home URLThe WordPress site URL used as proxy for the block. Set automatically — only change this if you run Swiffle Grid on a different domain than your front-end.BothCurrent site URL
Data sourceThe connector that feeds the grid. WordPress — posts from this site. RSS — any RSS feed URL (including YouTube channel feeds). XLSX / CSV,CSV / CSV;CSV — a spreadsheet published as a web URL (e.g. Google Sheets «Publish to web»). WooCommerce — product catalog with remote cart, wishlist & sign-in. Custom — a custom PHP connector you have registered.BothWordPress
URL / sourceFeed URL for RSS, spreadsheet URL for CSV/XLSX, or connector slug for Custom. Not shown for WordPress or WooCommerce.Both—
WordPress categoriesOne or more WordPress post categories to display. Leave empty to show all posts.BothAll
WooCommerce categoriesOne or more WooCommerce product categories. Special values: wishlist (customer’s saved items), on_sale_only (sale products only).BothAll
SortingDefault sort order for WooCommerce products: latest, popularity, rating, price high–low, price low–high, or relevance.BothSort by latest
Title (Filter)Custom title shown above the filter panel. Leave empty for the auto-generated title.BothAuto
Follow the page filter?When enabled, the block reacts to a page-level search/filter widget and updates its results accordingly.BothYes
Follow the url filter?When enabled, the block reads WooCommerce URL query parameters and applies them as filters.BothYes
Show no data error?Display a message when the data source returns no results. Disable for a cleaner silent empty state.BothYes
Include WP headers?Include post meta headers (category, date) in the card content.BothYes
Show Comments?Show the comment thread on the back of each card.BothYes
⚙️ Block properties
SettingDescriptionDeviceSourceDefault
LanguageLanguage used for built-in labels (price, cart, ratings…). Default follows the WordPress site locale. Takes effect after saving and reloading. Use the same language on all blocks of the same page.BothWPWooCustomDefault
Cards per pageNumber of cards loaded per page. Pagination appears automatically when more cards are available. Range: 4–100.LaptopAll20
Cards per pageSame as above, for mobile screens.PhoneAll12
Default block layoutInitial layout when the page loads. Wrap — classic grid with automatic line wrap. Swipe — Tinder-style swipe (left = next, right = previous), cards are also flippable. Fixed swipe — full-screen immersive swipe. Row — horizontal scrollable row.LaptopAllWrap
Default block layoutSame as above, for mobile screens.PhoneAllWrap
Show layout button?Whether to show a button that lets visitors switch layout themselves. No locks the layout. All options lets visitors pick any layout. Individual values restrict the toggle to a specific layout.LaptopAllRow
Show layout button?Same as above, for mobile screens.PhoneAllFixed swipe
Show filter button?Show the filter/search panel toggle button.BothWPWooCustomYes
Show mini cart?Show the floating mini-cart button.LaptopWooYes
Show mini cart?Same as above, for mobile screens.PhoneWooYes
Mini cart shapeSquare with all — icon + quantity + total. Square / Round with quantity only — compact variants. Round with all — circular, full info.LaptopWooSquare with all
Mini cart shapeSame as above, for mobile screens.PhoneWooSquare with all
Mini cart iconIcon style inside the mini-cart button: Bag, Shopping cart, or Basket.BothWooBag
Login in mini cartShow a sign-in shortcut inside the mini cart panel — enables remote authentication without leaving the external site.BothWooYes
Mini cart locationWhere the floating button is anchored: Left / Top / Right / Bottom — fixed to that viewport edge. HTML element — injected into a CSS selector you specify below.LaptopWooRight
Mini cart locationSame as above, for mobile screens.PhoneWooRight
Mini cart CSS selectorCSS selector of the element that hosts the button when location is «HTML element» (e.g. #site-header-cart). Only shown when «HTML element» is selected.LaptopWoo—
Mini cart CSS selectorSame as above, for mobile screens.PhoneWoo—
Mini cart marginDistance from the viewport edge (Left / Top / Right / Bottom anchoring). Accepts any CSS unit: 20vh, 40px…LaptopWoo20vh
Mini cart marginSame as above, for mobile screens.PhoneWoo20vh
🃏 Cards properties

Content

SettingDescriptionDeviceSourceDefault
Direction of the frontColumn — image on top, text below. Row — image left, text right.LaptopAllColumn
Direction of the frontSame as above, for mobile screens.PhoneAllColumn
Image adjustmentCover — crops to fill. Height 100% — scales to full height. Width 100% — scales to full width.LaptopAllCover
Image adjustmentSame as above, for mobile screens.PhoneAllCover
Image qualityWordPress/WooCommerce image size: Max (large), Medium, or Min (thumbnail). Smaller sizes load faster.LaptopWPWooMax
Image qualitySame as above, for mobile screens.PhoneWPWooMax
Show card flow title?Show the auto-generated section title above each group of cards (e.g. the category name).BothWPRSSCSVXLSXYes
Card flow titleOverride the auto-generated flow title with a custom label. Leave empty to use the auto value.BothWPRSSCSVXLSXAuto
Title over the picture?Overlay the card title on top of the image instead of below it.LaptopAllYes
Title over the picture?Same as above, for mobile screens.PhoneAllYes
Title font sizeFont size of the card title. Accepts any CSS unit: px, vw, vh.LaptopAll16px
Title font sizeSame as above, for mobile screens.PhoneAll16px
Show price?Show the product price on the card front.LaptopWooYes
Show price?Same as above, for mobile screens.PhoneWooYes
Price over the picture?Overlay the price on top of the image.LaptopWooNo
Price over the picture?Same as above, for mobile screens.PhoneWooNo
Alert over the picture?Show the SALE / discount badge overlaid on the product image.LaptopWooYes
Alert over the picture?Same as above, for mobile screens.PhoneWooYes
Show card abstract?Show the post excerpt or product short description below the image.LaptopWPRSSCSVXLSXWooYes
Show card abstract?Same as above, for mobile screens.PhoneWPRSSCSVXLSXWooYes
Show to cart button?Show the Add to Cart button on the card front.LaptopWooYes
Show to cart button?Same as above, for mobile screens.PhoneWooYes
Show rate?Show the star rating on the card front.LaptopWooYes
Show rate?Same as above, for mobile screens.PhoneWooYes
Show product variations?Show selectable variations (size, colour…) directly on the card front.LaptopWooYes
Show product variations?Same as above, for mobile screens.PhoneWooYes
Show swipe icon?Show a small arrow icon hinting the card is swipeable.LaptopAllYes
Show swipe icon?Same as above, for mobile screens.PhoneAllYes
Show SALE on card?Animation style for the sale badge: Spin, Jumper, Marquee, Woo, Woo Jumper, or disabled.BothWooSpin
Card content onlyStrip the card chrome (border, shadow, background) and render content only. Useful inside a custom layout.BothAllNo
Round cart buttons?Make the +/− quantity buttons circular instead of square.BothWooYes

Dimensions

SettingDescriptionDeviceSourceDefault
Card widthWidth of each card. Accepts any CSS unit: px, vw, vh.LaptopAll300px
Card widthSame as above, for mobile screens.PhoneAll300px
Max card widthMaximum card width — prevents stretching on large screens.LaptopAll90vw
Max card widthSame as above, for mobile screens.PhoneAll90vw
Card heightHeight of each card. Accepts any CSS unit.LaptopAll400px
Card heightSame as above, for mobile screens.PhoneAll400px
Card gapSpacing between cards. Accepts any CSS unit.LaptopAll10px
Card gapSame as above, for mobile screens.PhoneAll10px
Card radiusCorner rounding of the card, in pixels (0–300).LaptopAll5
Card radiusSame as above, for mobile screens.PhoneAll5
Card image percentagePercentage of the card height occupied by the image (0–100%).LaptopAll60
Card image percentageSame as above, for mobile screens.PhoneAll60
Card image radiusCorner rounding of the image inside the card, in pixels (0–300).LaptopAll0
Card image radiusSame as above, for mobile screens.PhoneAll0
Cart button sizeRelative size of the Add to Cart / quantity buttons, on a scale of 0–10.LaptopWoo7
Cart button sizeSame as above, for mobile screens.PhoneWoo10

Actions

SettingDescriptionDeviceSourceDefault
Card front click/tap actionFlip — reveals the card back. Window 80% / 50% / 100% — opens a modal. Navigate — goes to the post/product URL (same window). Navigate (new window) — same, new tab. Navigate URL — goes to the Target URL or NAV_ column value (same window). Navigate URL (new window) — same, new tab. No action — card is not interactive.LaptopAllWindow 80%
Card front click/tap actionSame as above, for mobile screens.PhoneAllFlip
Target URLDestination used when click action is «Navigate URL». For WordPress sources, define a NAV_xxx custom field on each post instead.BothRSSCSVXLSX#
Show navigate button?Show an explicit link button on the card so visitors can reach the original source even when the click action is Flip or a modal.BothRSSCSVXLSXYes
🎨 Colors
SettingDescriptionDefault
Card background colorBackground color of the card body (below the image).#ffffff
Card text colorColor of the main text content on the card.#111111
Card title background colorBackground of the title area when the title is overlaid on the image.#47bcd4
Card title text colorColor of the title text.#ffffff
Card button background colorBackground color of Add to Cart and action buttons.#9555af
Card button text colorText / icon color of action buttons.#ffffff
Mini cart background colorBackground of the floating mini-cart button. WooCommerce#9555af
Mini cart text colorText / icon color inside the mini-cart button. WooCommerce#ffffff
Comments background colorBackground of the comments section on the card back.#f3f3f3
Alert background colorBackground of the SALE / discount badge. WooCommerce#ff0000
Alert text colorText color of the SALE badge. WooCommerce#ffff00
Star good colorColor of filled (positive) stars in the rating display. WooCommerce#ffd700
Star bad colorColor of empty (unfilled) stars. WooCommerce#bdbdbd

📤 Embed code

The Embed code section lets you export a Swiffle Grid block as a self-contained HTML snippet that runs on any website — even one not built with WordPress. The output is a small HTML file you paste into Shopify, Webflow, Wix, a static site, or any platform that accepts HTML.

  1. Configure your grid fully in Gutenberg or Elementor (data source, layout, colors, card settings).
  2. Open the Embed code panel at the bottom of the block settings.
  3. Click the Copy button — the complete HTML snippet is now in your clipboard.
  4. Paste it into the HTML editor of the destination site.

The snippet includes the Swiffle Grid web component loader and the encoded block configuration. It connects back to your WordPress site as a proxy — data, WooCommerce cart, wishlist, and sign-in all keep working on the external site with no CORS issues. Checkout itself completes back on your WordPress store, keeping your existing payment setup intact.

You can embed as many blocks as you need on the same external page. The <script> loader only needs to appear once — all <swiffle-grid> elements on the same page share it automatically.