Skip to content

Instantly share code, notes, and snippets.

@tdmrhn
Created April 5, 2024 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdmrhn/a5c5aa0142d39bc376302e902f6ce8a9 to your computer and use it in GitHub Desktop.
Save tdmrhn/a5c5aa0142d39bc376302e902f6ce8a9 to your computer and use it in GitHub Desktop.
Blocksy 2 Disable cart and checkout buttons on opposite pages
body.woocommerce-cart .woocommerce-mini-cart__buttons .wc-forward:not(.checkout),
body.woocommerce-checkout .woocommerce-mini-cart__buttons .checkout
{ display: none; }
body.woocommerce-cart .woocommerce-mini-cart__buttons,
body.woocommerce-checkout .woocommerce-mini-cart__buttons
{ grid-template-columns: 1fr; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment