Notifications
Clear all

narrow the line spacing

2 Posts
2 Users
0 Reactions
135 Views
Posts: 1
Topic starter
(@3chiru)
New Member
Joined: 2 months ago

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
Sofy
Posts: 4871
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

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/

Reply