Created
November 8, 2021 01:09
-
-
Save flexseth/cccf77d34725997553bf27d40a29ead0 to your computer and use it in GitHub Desktop.
Show thumbnails in the WooCommerce Cart preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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