Notifications
Clear all

[Solved] Change the color of the writing field to topic

3 Posts
2 Users
1 Reactions
335 Views
Posts: 8
Topic starter
(@davidsousa)
Active Member
Joined: 1 year ago
Change the color of the writing field to topic, I want to leave it in black. How do I do?
2 Replies
BlackRaz
Posts: 406
Admin
(@blackraz)
Contributor
Joined: 8 years ago

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/

1 Reply
(@davidsousa)
Joined: 1 year ago

Active Member
Posts: 8

@blackraz

It worked, thank you very much!