Notifications
Clear all

[Solved] Locking font size

3 Posts
2 Users
1 Reactions
287 Views
marsm
Posts: 113
Topic starter
(@marsm)
Estimable Member
Joined: 3 years ago

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

2 Replies
Robert
Posts: 10545
Admin
(@robert)
Support Team
Joined: 8 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: 3 years ago

Estimable Member
Posts: 113

@robert thank you. That worked.