Support

Home Forums Event Espresso Premium Custom CSS for Email Notifications

Custom CSS for Email Notifications

Posted: January 5, 2015 at 8:21 pm

Viewing 4 reply threads


Chris Wathen

January 5, 2015 at 8:21 pm

I’m trying to customize the emails that are sent out after someone registers for an event, however I am unable to get the plugin to to recognize the new location for the CSS files. This is the code I am using:

function ee_inline_css_swap(  $url, $type ) {
  $NRPC_Email_dir = 'http://nrpc.dev/content/uploads/espresso/email';
      switch ( $type ) {
    case 'preview' :
      $url = $NRPC_Email_dir . '/email-messenger-inline-preview-css.template.css';
      break;
 
    case 'wpeditor' :
      $url = $NRPC_Email_dir . '/email-messenger-inline-wpeditor-css.template.css';
      break;
 
    default :
      $url = $NRPC_Email_dir . '/email-messenger-inline-css.template.css';
      break;
  }
 
  return $url;
}
add_filter( 'FHEE__EE_Email_Messenger__get_inline_css_template__css_url', 'ee_inline_css_swap', 10, 2 );

It’s only on the actual message that’s generated that’s not working correctly, it properly references the preview and editor CSS files but the email source is only showing the CSS file located in the core plugin.


Dean

January 6, 2015 at 5:56 am

Hi,

The URL looks wrong, shouldn’t http://nrpc.dev/content/uploads/espresso/email wp wp-content (http://nrpc.dev/wp-content/uploads/espresso/email) ?


Chris Wathen

January 6, 2015 at 7:25 am

No, we have the uploads path set to /content/uploads instead of /wp-content/uploads I have tried it in both locations with neither being successful.


Dean

January 6, 2015 at 8:05 am

Hi,

Thanks for the clarification. I’m getting the same results as you. As such I’ll run it via a developer to clarify if this is a bug or whether we are both missing something and I will get back to you as soon as I have a response.


Dean

January 8, 2015 at 4:16 am

Hi,

I received some further feedback from the developers. Due to upcoming changes to the messaging system in EE4.5.0 we will not be able to fix this issue, as in 4.5.0 it will not exist as the the filter will be deprecated.

Instead there will be a different way to handle template variations.

Viewing 4 reply threads

The support post ‘Custom CSS for Email Notifications’ 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.

Event Espresso