Skip to content

Instantly share code, notes, and snippets.

@flexseth
Created November 8, 2021 01:09
Show Gist options
  • Save flexseth/cccf77d34725997553bf27d40a29ead0 to your computer and use it in GitHub Desktop.
Save flexseth/cccf77d34725997553bf27d40a29ead0 to your computer and use it in GitHub Desktop.
Show thumbnails in the WooCommerce Cart preview
/** MyStyle: Show thumbnail in cart larger than default 32px **/
.woocommerce-cart table.cart img {
width: auto;
min-width: 32px;
max-width: 100px;
}
@media(max-width:768px) {
/** Show thumbnail row in cart on mobile **/
.woocommerce-page table.cart .product-thumbnail {
display: inline-block !important;
}
/** hide colon above thumbnail for mobile **/
.woocommerce-page table.cart .product-thumbnail:before {
display: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment