AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Solved] Email Template - New Topic Notification-Font Size is not saved

3 Posts
2 Users
0 Reactions
2,350 Views
Posts: 5
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@steffeng)
Active Member
Joined: 4 years ago
[#24752]

Set font size disappears after "Safe Option".

Examble Set Font Size 16 bevor saving

<p style="font-family: arial;"><span style="font-size: 16px;">Hallo [user_display_name],</span></p><p><span style="font-size: 16px;">in Ihrem abonnierten Fachthema wurde ein neues Thema erstellt.</span></p>

after saving

<p style="font-family: arial;">Hallo [user_display_name],</p><p>in Ihrem abonnierten Fachthema wurde ein neues Thema erstellt.</p>

So need a little help 😉

Screenshot 2022 09 19 134650

2 Replies
Chris
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

Hi @steffeng,

Emails are filtered for HTML codes. The <span> tag is not allowed in email content as it is not a Post content. It should be secure and clean. This will help emails to pass more antispam systems of Email servers.

The default WordPress emails doesn't have HTML tags, we added a few secure tags (formatting tags and link).

By default, allowed tags are: 'a', 'img', 'blockquote', 'h1-h5','hr', 'br',  'p', 'style', 'strong'.

However, you can use the below code to allow all tags to work.

Put this code in your active theme functions.php file:

function my_custom_email_html_tags( $allowed_html ){
if( $allowed_post_html = wp_kses_allowed_html( 'post' ) ){
$allowed_html = $allowed_post_html;
}
return $allowed_html;
}
add_filter( 'wpforo_kses_allowed_html_email', 'my_custom_email_html_tags');

How to Easily Add Custom Code in WordPress (without Breaking Your Site)


Posts: 5
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@steffeng)
Active Member
Joined: 4 years ago

perfect...thanks 🍾 


Share: