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.

 

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

3 Posts
2 Users
1 Reactions
434 Views
Posts: 8
Topic starter
(@davidsousa)
Active Member
Joined: 2 years 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: 396
Admin
(@blackraz)
Contributor
Joined: 9 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: 2 years ago

Active Member
Posts: 8

@blackraz

It worked, thank you very much!