Email Notification ...
 
Notifications
Clear all

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

6 Posts
2 Users
0 Reactions
866 Views
ruchik
Posts: 11
Topic starter
(@ruchik)
Active Member
Joined: 3 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: 3649
(@chris)
Famed Member
Joined: 3 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: 3 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: 3 years ago

Famed Member
Posts: 3649

@ruchik,

yes, that would work.

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

Thanks @chris

ruchik
Posts: 11
Topic starter
(@ruchik)
Active Member
Joined: 3 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.