Posted: May 22, 2018 at 10:43 am
|
Hi How and where can I fix this? Thanks ! |
|
Sorry I meant between the header and the main content |
Hi there, We can look into this. May I ask can you post a screenshot that includes the extra space? Also, can you send the contents of the Main Content section of the email template (from the Text view)? |
|
|
Thanks Josh. Sure here it is: Le message suivant a été envoyé à la personne ayant effectué l’inscription :
And screenshot : https://imageshack.com/a/img923/3350/iADUxK.jpg |
|
Code will be easier to read : https://pastecode.xyz/view/768546af |
|
Code will be easier to read: https://pastecode.xyz/view/768546af |
|
Code will be easier to read:
<h2></h2> |
Is the logo at the top getting added by means of a custom stylesheet or a custom header template? |
|
|
Hi ! |
Oh that’s from a different plugin. The space is probably being added by the other plugin. That’s this one, https://wordpress.org/plugins/wp-html-mail/, right? |
|
Or are you using this plugin? |
|
|
I think you are right, this is the first one. |
If you have the second one activated, then adding this code should remove its effect on the EE emails: https://gist.github.com/joshfeck/12910a43ef450e2c3316176b08c25868 You can add the above to a functions plugin. |
|
|
Thanks Josh |
This is a tricky one because the spaces between the header and the content are added by the other plugin. One way to reduce most of the space would be to override Event Espresso’s main email template wrapper so that it only outputs the message content (nothing else) because the other email plugin adds its own html wrapper. So the steps to make this happen are as follows:
3) create a new file within the site specific plugin, and name it: |
|
|
Thanks Josh. A bit tricky but working, indeed. |
If you deactivate the other email plugins does the formatting issue go away for new emails? Also, if you check the email preview from within the message templates editor, does it have any formatting issues? |
|
|
Hi Josh |
The formatting issue may be the result of yet another plugin conflict. One way you can rule out a plugin or theme conflict is by installing the Health Check plugin, then go to WP → Dashboard → Heath Check → Troubleshooting. There you’ll Enable Troubleshooting Mode, then once that’s activated you’ll reactivate Event Espresso only via the Health Check’s Troubleshooting item in the WP admin bar. At that point, can you check to see if the issue persists? |
|
The support post ‘EE emails – Spaces between header and content’ 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.