AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

narrow the line spacing

2 Posts
2 Users
0 Reactions
916 Views
Posts: 1
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@3chiru)
New Member
Joined: 1 year ago
[#57763]

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

1 Reply
Sofy
Posts: 5774
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 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
Share: