Skip to content

Instantly share code, notes, and snippets.

@webdados
Created October 4, 2024 16:45
Show Gist options
  • Save webdados/a80f86b3b8959bc8097aa4c56426685f to your computer and use it in GitHub Desktop.
Save webdados/a80f86b3b8959bc8097aa4c56426685f to your computer and use it in GitHub Desktop.
Style DPD Pickup for WooCommerce point information on emails
<?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