Support » Plugin: Email Template Designer - WP HTML Mail » Light border
Light border
-
Hello
I would like to create a border around the body and contain the left and right edge of the mail only (content only) not the header or the footer, like the Google mail
https://drive.google.com/file/d/1iN4ST3YZF5Nan3jtW0-vyUmBt86w10-s/viewHow to do ?
Thanks for your help
-
The link above is not public. I can’t see it, but you can’t add a border now in the UI.
We didn’t want tons of options so we limited the customizations. Within the last months we learned more and more about our users so we are going to extend the customization options. Maybe I can send you a code snippet for the border when you send me a new link.
best regards, HannesI understand, after that I really like your plugin better than WP Betters email 🙂
sorry this pictures gmail:
https://wetransfer.com/downloads/3c47471111d8dd2d1b655e0f03e04d6920190601114512/f67729/preview/1f8677570c4c8d06cb23c0b41fd11acb20190601114521Just give me 2 more days. During the weekend I can just answer from my mobile and can’t write any code.
Ok no problem, thank you,
it’s already nice of you to answer and help me customize 🙂Hello
I come to the news, for your help?Thank you
perfectly on time…
here it is (just add to your (child-)themes functions.php):add_filter( 'haet_mail_css_desktop', function( $css ){ $css .= ' td.header{ border: 1px solid #ddd; border-bottom: none; border-top-left-radius: 10px; border-top-right-radius: 10px; } td.content{ border: 1px solid #ddd; border-top: none; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } '; return $css; });
Hello
Thank you very much it’s superb
Just one last small change:
The header was created with an image that I downloaded (not knowing the code to reproduce the header as on image)
The footer was created with the wordpress table that I then integrate in HTML code.
But it does not fit perfectly to the border
and the footer is outside the border.How to integrate the footer inside the border and that everything is perfectly aligned inside?
Ditto for the header?If you need, I can provide you by mail my wp-admin access to watch
Thank you, thank you very much
https://wetransfer.com/downloads/c9cab67f67155ed879a3e8c78438388220190603115258/efc929/preview/528577165041ec4c520a2242208982d420190603115308it seems you hav configured a padding-top for your header and you’ve rounded the borders of the header image, right?
Use the same gray color for the header background as you did inside your header image.
Use this updated code to integrate the footer into the border:add_filter( 'haet_mail_css_desktop', function( $css ){ $css .= ' td.header{ border: 1px solid #ddd; border-bottom: none; border-top-left-radius: 10px; border-top-right-radius: 10px; } td.content{ border: 1px solid #ddd; border-top: none; border-bottom: none } td.footer-text{ border: 1px solid #ddd; border-top: none; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } '; return $css; });
best regards, Hannes
Thank you !
You are right 🙂
The image in the header is not glued to the edge and contourThe footer that I created with wordpress table:
I would like it to be all the way down and integrate at the edge and outline of the footer see screenshot image here: https://wetransfer.com/downloads/57f8a30664be3a6a97802a0664e7485b20190603121655/1d2a23/preview/c79b99a1f1b569c32808030b6bee7f1820190603121707Thank you very much for your help, very kind
Please send me an admin account to the email address on our contact page
I’m going to try…I managed with the HTML code, to change the layout of the elements of the footer.
But the footer bar and header image are not glued edge to edge with the outline.
- The topic ‘Light border’ is closed to new replies.