function wingz_ee_modify_email_css( $variation_path, $messenger, $message_type, $type, $variation, $file_extension, $url, EE_Messages_Template_Pack $template_pack ) {
if ( $messenger != 'email' ) {
return $variation_path;
}
//for this example we'll just filter the wpeditor for this variation
if ( $type != 'main' ) {
return $variation_path;
}
$new_url = get_stylesheet_directory_uri() . '/includes/event-espresso/css/wingz_ee_email_main.css';
return $new_url;
}
add_filter( 'FHEE__EE_Messages_Template_Pack__get_variation', 'wingz_ee_modify_email_css', 10, 8 );
Marking resolved!
Viewing 2 reply threads
The support post ‘Safe way to edit email_main_default.css’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.