How-to and Troubleshooting
3
Posts
2
Users
1
Reactions
354
Views
Jul 20, 2023 2:51 am
Change the color of the writing field to topic, I want to leave it in black. How do I do?
2 Replies
Jul 20, 2023 11:27 am
Hi @davidsousa ,
You can use this custom code, to set background-color to the tinymce text editor.
add_filter( 'wpforo_editor_settings', function ( $s ){ $s['tinymce']['content_style'] .= ' body{ background-color: #555 !important; color: white !important; }'; return $s; } ); add_filter( 'wpforo_dynamic_css_filter', function ($css){ $css .= ' .mce-edit-area.mce-container.mce-panel.mce-stack-layout-item, .mce-panel.mce-stack-layout-item.mce-last{ background-color: #555 !important; } '; return $css; } );
For adding custom code to your WordPress site you can use this "Code Snippets" plugin https://wordpress.org/plugins/code-snippets/