Snippets: 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;
}

Result:

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)