Created
October 4, 2024 16:45
-
-
Save webdados/a80f86b3b8959bc8097aa4c56426685f to your computer and use it in GitHub Desktop.
Style DPD Pickup for WooCommerce point information on emails
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
<?php | |
/** | |
* https://ptwooplugins.com/product/dpd-seur-geopost-pickup-and-lockers-network-for-woocommerce/ | |
* | |
* #woo_dpd_pickup_point_information is the outter DIV for all the point information | |
* .woo_dpd_pickup_point_information_schedule is the SMALL tag for the schedule information | |
* .woo_dpd_pickup_point_information_icon_schedule is the SPAN tag for the schedule icon | |
*/ | |
add_filter( 'woocommerce_email_styles', function( $css ) { | |
$css .= ' | |
#woo_dpd_pickup_point_information { | |
color: red; | |
} | |
#woo_dpd_pickup_point_information .woo_dpd_pickup_point_information_schedule { | |
font-size: inherit; | |
color: blue; | |
} | |
#woo_dpd_pickup_point_information .woo_dpd_pickup_point_information_icon_schedule { | |
display: none; | |
} | |
'; | |
return $css; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment