Skip to content

Instantly share code, notes, and snippets.

@wplit
Last active October 22, 2025 23:52
Show Gist options
  • Save wplit/049ed9980799331d9fc830d4da5361fc to your computer and use it in GitHub Desktop.
Save wplit/049ed9980799331d9fc830d4da5361fc to your computer and use it in GitHub Desktop.
Show only the add to cart button in Fluent Carts Buy Section element (add to CSS settings on Buy Section element)
/* hide variant container, quantity, price */
%root% .fc-product-variants,
%root% .fc-product-quantity-container,
%root% .fc-product-item-price {
display: none!important;
}
/*
// optionally hide the buy now button
%root% .fluent-cart-direct-checkout-button {
display: none!important;
}
// or hide the add to cart button
%root% .fluent-cart-add-to-cart-button {
display: none!important;
}
*/
@wplit
Copy link
Author

wplit commented Oct 22, 2025

Example end results..

(just the add to cart)
SCR-20251023-jora

(just the buy now)
SCR-20251023-jrpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment