Notifications
Clear all

[Solved] Locking font size

3 Posts
2 Users
1 Reactions
388 Views
marsm
Posts: 137
Topic starter
(@marsm)
Estimable Member
Joined: 4 years ago

Is there a way of not allowing forum users to change the font size?

2 Replies
Robert
Posts: 10590
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @marsm,

If you're talking about the editor font size, then you can disable it using this code in the Code Snippets plugin:

function wpforo_custom_editor_toolbar( $settings ){
   if( isset($settings['tinymce']['toolbar1']) ){
        $settings['tinymce']['toolbar1'] = 'bold,italic,underline,strikethrough,forecolor,bullist,numlist,hr,alignleft,aligncenter,alignright,alignjustify,link,unlink,blockquote,pre,wpf_spoil,undo,redo,pastetext,source_code,emoticons,fullscreen';
   }
   return $settings;
}
add_filter('wpforo_editor_settings', 'wpforo_custom_editor_toolbar', 12);
1 Reply
marsm
(@marsm)
Joined: 4 years ago

Estimable Member
Posts: 137

@robert thank you. That worked.