Skip to content

Snippet: Add Zoom Icon to WooCommerce Product Gallery

.woocommerce-product-gallery__image {
    position: relative;
}

.woocommerce-product-gallery__image::before {
    font-family: "ticons";
    content: "\f00e"; /* change this to the icon you want - see theme icons docs*/
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 99;
    color: #fff;
    background: #000;
    border-radius: 9999px;
    height: 30px;
    width: 30px;
    line-height:30px;
    text-align:center;
    font-size: 14px;
    cursor: pointer;
}
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top