How-to and Troubleshooting
7
Posts
4
Users
3
Reactions
2,191
Views
Nov 03, 2020 10:43 pm
Hi. Kindly check the attached picture.
I want to remove some items for my users from the text editor.
Kindly tell me the process and how to do it.
I will be thankful to you.
6 Replies
Nov 04, 2020 10:17 am
Hi @swarup,
That's very easy to do with 'wpforo_editor_settings' filter hook. Put this code in your current active WordPress theme functions.php file. You can see all button names in 3rd line of this code, just remove whichever you want.
function wpforo_custom_editor_toolbar( $settings ){
if( isset($settings['tinymce']['toolbar1']) ){
$settings['tinymce']['toolbar1'] = 'fontsizeselect,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);
Sep 20, 2022 11:41 pm
Are these files accessed through sftp? or another part of my site?