Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

[Solved] Locking font size

3 Posts
2 Users
1 Reactions
1,056 Views
marsm
Posts: 154
Topic starter
(@marsm)
Reputable Member
Joined: 5 years ago

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


2 Replies
Robert
Posts: 10603
Admin
(@robert)
Support Team
Joined: 10 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: 5 years ago

Reputable Member
Posts: 154

@robert thank you. That worked.