Email Notification ...
 
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

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

6 Posts
2 Users
0 Reactions
1,197 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: 3611
(@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: 3611

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