Skip to content

Instantly share code, notes, and snippets.

@Mativve
Created October 10, 2022 11:11
Show Gist options
  • Save Mativve/03c4fd28f977da4645b94b16c105a5a7 to your computer and use it in GitHub Desktop.
Save Mativve/03c4fd28f977da4645b94b16c105a5a7 to your computer and use it in GitHub Desktop.
OceanWP naprawa wysokości zdjęć i kategorii
.product-category a:empty{
display:none !important;
}
.image-wrap{
height:300px;
}
.image-wrap .woo-entry-image, .product-category .woo-entry-image{
height:300px;
}
.image-wrap .woo-entry-image > a:first-child, .product-category .woo-entry-image > a:first-child{
display:block;
height:300px;
overflow:hidden
}
.image-wrap .woo-entry-image > a img, .product-category .woo-entry-image > a img{
width:100%;
height:100%;
object-fit:cover;
object-position:center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment