Oct 24, 2024 7:24 am
Hello. Thanks for the great plugin.
I am having trouble with the settings, please let me know.
I'm not good at English, so I'm sorry if it's not clear.
Sorry if there are other similar questions.
When I am creating a topic, I would like to reduce the margins when I make a line break in the text. I need to narrow the line spacing.
↓ I tried putting the code below in my custom CSS, but it didn't work.
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p{ line-height: 10px; }
1 Reply
Oct 28, 2024 9:54 am
Hi,
If you want to reduce the space in the TinyMCE editor, use the hook code below:
add_filter( 'wpforo_editor_settings', function( $settings ) { $settings['tinymce']['content_style'] .= ' p{margin:0;}'; return $settings; } );
Here’s a helpful article on safely adding custom code in WordPress: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/