Feb 14, 2022 3:18 pm
In Email Notification Message body Classes are getting removed. If I add some class and update option it is automatically removing those classes.
for eg: I have added a logo image and I have center aligned it and bydefault class is added "class="aligncenter"" but while saving, it is removing that class
5 Replies
Feb 16, 2022 12:00 pm
Hi @ruchik,
Please insert the below code in your active theme fucntions.php file or add in with Snippet:
add_filter( 'wpforo_kses_allowed_html_email', function( $allowed_html ){ $allowed_html['img']['class'] = true; return $allowed_html; });
Feb 17, 2022 4:16 am
Hi @chris,
It worked perfectly. If I want to add div will below code will work ?
$allowed_html['div']['class'] = true;
Feb 18, 2022 1:51 pm
@chris If I want to add Table how do I add because every time I add table tag and save it, it just removes table tag.