Home › Forums › Quform WordPress › conditional email styling › Reply To: conditional email styling
April 18, 2019 at 6:38 pm #29103
yannis
Participant
sorry, I didn’t use the back ticks in my previous message
// conditional formatting - uses different scripts for email styling
add_filter('quform_all_form_data_html', function ($content, Quform_Form $form, $showEmptyFields) {
if (!in_array($form->getId(), array(3))) {
return $content;
}
// END
add_filter('quform_all_form_data_html', function ($content, Quform_Form $form, $showEmptyFields) {
$newline = "\r\n";
$content = '<table width="100%" cellpadding="3" cellspacing="0" border="0" style="table-layout: fixed; background: #ffffff; border-bottom: 1px solid #d4d4d4; box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.07);">' . $newline;
... the rest of the original code
- This reply was modified 5 years ago by yannis.