Email Notification ...
 
Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

wpForo 1.x.x [Solved] Email Notification Message body

6 Posts
2 Users
0 Reactions
1,473 Views
ruchik
Posts: 11
Topic starter
(@ruchik)
Active Member
Joined: 4 years ago

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


Topic Tags
5 Replies
Chris
Posts: 3610
(@chris)
Famed Member
Joined: 4 years ago

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;
});

ruchik
Posts: 11
Topic starter
(@ruchik)
Active Member
Joined: 4 years ago

Hi @chris,

It worked perfectly. If I want to add div will below code will work ?

$allowed_html['div']['class'] = true;


1 Reply
Chris
(@chris)
Joined: 4 years ago

Famed Member
Posts: 3610

@ruchik,

yes, that would work.


ruchik
Posts: 11
Topic starter
(@ruchik)
Active Member
Joined: 4 years ago

Thanks @chris


ruchik
Posts: 11
Topic starter
(@ruchik)
Active Member
Joined: 4 years ago

@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.