Sticky Add to Cart Appearance and Settings
On this page
Documentation pages
Change and save settings
Open WooCommerce → Sticky Cart or use the plugin’s Settings link on Plugins → Installed Plugins. You need permission to manage WooCommerce; the same permission is used to save changes.
- Choose a display style and width.
- Set the colours or enable Glass mode.
- Choose which product details appear at each viewport size.
- Use Live preview → Desktop, Tablet and Mobile to compare the layouts.
- Select Save Changes.
- Check a real product page at the same widths, including the purchase action.
Expected result: the saved appearance applies to eligible product pages. Preview changes alone do not save settings.
Display
| Setting | Default | Options and effect |
|---|---|---|
| Display style | Full width | Full width spans the viewport at its bottom edge. Contained centres a narrower bar at the bottom edge. Lifted container centres a rounded bar with a 16 px bottom gap. |
| Maximum width | 1200 px | Whole pixels from 320 to 1920. Full width uses this limit for its inner content; Contained and Lifted container use it for the bar’s width, subject to available screen space. |
Contained keeps at least 12 px of space on each side; Lifted container keeps at least 16 px. The bar can become narrower than Maximum width on a small viewport. It stays fixed to the bottom of the viewport; there is no top-bar position setting.
Colours and Glass mode
| Setting | Default | Use |
|---|---|---|
| Background colour | #ffffff | The normal background, and the base colour beneath the Glass tint. |
| Sticky cart text colour | #1a1a1a | Product title and price in standard mode. |
| Button background colour | #1a1a1a | Purchase button background in standard mode. |
| Button text colour | #ffffff | Purchase button text in standard mode. |
| Use a Glass background | Off | Applies a dark translucent treatment and overrides the normal text and button colours while enabled. |
Use the colour pickers or valid three- or six-digit hexadecimal values, such as #fff or #ffffff. Enter the default value shown above when you want to restore a colour, rather than leaving the field empty. Standard hover styling darkens the button slightly.
Glass mode uses white bar text, a white button and dark button text. Your selected text and button colours remain saved and return when you turn Glass mode off. Background colour still contributes to the tinted surface. Browsers with the necessary support show backdrop blur; others use a darker fallback treatment. Judge contrast against the actual product page, including hover and focus states.
Your theme or existing custom styling may take precedence over saved standard colours and Maximum width. Glass has its own text/button treatment, so changing the standard text or button colours while Glass is enabled will not change those visible colours. If the preview and storefront disagree, check Glass first, then theme customisations and caches.
Element visibility
Tick Show for the product detail and viewport size you want. The defaults are:
| Product detail | Desktop | Tablet | Mobile |
|---|---|---|---|
| Product image | Show | Show | Hide |
| Product title | Show | Show | Show |
| Price | Show | Show | Show |
The breakpoints use viewport width, not the physical device name: Mobile is below 768 px, Tablet is 768–1023 px, and Desktop is 1024 px or wider. A narrow desktop browser can therefore use the Mobile settings.
The Add to basket action stays available whenever the bar is shown; the visibility matrix cannot hide it. Its label can instead be Select options or the text of the original WooCommerce purchase button. Hiding title and price removes their details area. Long titles are shortened visually to fit the available space.
Mobile button layout
Full-width Add to basket button on mobile is off by default. Turn it on to put the button on its own full-width row below 768 px. It does not change tablet or desktop layout. At very narrow widths the standard button can also expand into remaining space, but that is different from explicitly requesting its own row.
Compatibility and behaviour
| Setting | Default | Effect |
|---|---|---|
| Show on product types | Simple and Variable | Chooses which registered product types may show the bar. An empty selection hides it everywhere. Selection alone does not make an unsupported form compatible. |
| Fixed header offset | 0 px | Non-negative whole pixels left above the destination when Select options scrolls back to the original form. It does not reposition the bottom bar. |
For the full selection and scroll workflow, see product forms.
What Live preview shows
The preview is a local illustration of the current form values. It uses Sample product, a placeholder product icon, a sample amount of 24 formatted in your store’s currency, and an Add to basket label. It reflects layout, colours, Glass, visibility and the mobile button row without saving or contacting a preview service.
It does not load a real product, select variations, process a purchase, simulate the scroll trigger, test a fixed header or reproduce all of your theme’s styling. Its Desktop, Tablet and Mobile buttons switch the illustration; they do not replace testing the storefront at actual viewport sizes.