Some more issues like, the editor in which user types, doesnt have a close button. Only maximize screen option is present in the editor. Moreover we also want to remove some unwanted options from editor like blackquote, code, spoiler, source code, emozi etc.
We'll take this under consideration. Just specify which layout and which editor exactly you mean. There are many types of editors n different forum layouts.
Moreover we also want to remove some unwanted options from editor like blackquote, code, spoiler, source code, emozi etc
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);
How to Easily Add Custom Code in WordPress (without Breaking Your Site)
Hello Tom,
Wpforo is great forum plugin, thank you.
Moreover we also want to remove some unwanted options from editor like blackquote, code, spoiler, source code, emozi etc
I also would like to do like this, so attached your code in current active theme(attached image). But it didn't work. There is still many options.
Please let me know how to do. Thank you for your support!
Hi @kota,
The code is provided to allow you remove any button you want. It's not provided to just copy and paste. Please let me know what exactly you would like to do? What toolbar buttons you'd like to remove?
Hi Tom,
Thank you for quick response. I would like to remove all buttons from font-size to emoji.
So you want to remove all toolbar buttons?
Yes. Is it possible?
Navigate to Dashboard > Forums > Settings > Styles admin page, put the following CSS code in "Custom CSS Code" textarea:
#wpforo-wrap .mce-toolbar .mce-btn-group {
display: none;
}
Don't forget to delete all caches and press CTRL+F5 on frontend before checking.
Hello Elvina,
It worked, thank you! Quick responses were very helpful for me, I think Wpforo is great forum plugin!