Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Script [Solved] Removing items from text editor

7 Posts
4 Users
3 Reactions
2,735 Views
Posts: 9
Topic starter
(@swarup)
Eminent Member
Joined: 5 years ago

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
Alvina
Posts: 1861
Moderator
(@alvina)
Member
Joined: 6 years ago

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);
1 Reply
(@jacobbiere)
Joined: 3 years ago

Active Member
Posts: 14

@alvina  Where do I put that code?

 

Posts: 14
(@jacobbiere)
Active Member
Joined: 3 years ago

Are these files accessed through sftp? or another part of my site?

 

3 Replies
VereK
(@verek)
Joined: 8 years ago

Honorable Member
Posts: 522
(@jacobbiere)
Joined: 3 years ago

Active Member
Posts: 14

@verek so in this situation how do I follow the steps above I might need a bit of a walkthrough

Thanks

 

(@jacobbiere)
Joined: 3 years ago

Active Member
Posts: 14

@verek Nevermind Im smart I got it done