Notifications
Clear all

wpForo 1.x.x [Solved] post and reply editor show 11pt font size

12 Posts
2 Users
0 Reactions
1,142 Views
Posts: 15
Topic starter
(@fassett99)
Eminent Member
Joined: 5 years ago

If I change the styles on the forum to change the default fonts it doesn't seem to affect the editor text box.

It still says 11pt even thought I have changed the default font size.  Should that value reflect the actual size of the default font the person will be typing with?  I've had some confusion thinking the text in the post is 11pt.  When I look at the post in the browser debugger, it shows 16px.

Is this the way it is meant to work?

Evelyn

 

11 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @fassett99,

Please leave your forum URL to allow us to check it. 

1 Reply
(@fassett99)
Joined: 5 years ago

Eminent Member
Posts: 15

@sofy bcvibranthealth.com

 

Posts: 15
Topic starter
(@fassett99)
Eminent Member
Joined: 5 years ago

Related to the editor - is there a way to add a photo to the post? I don't see any image option in the editor. 

 

4 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@fassett99,

Should that value reflect the actual size of the default font the person will be typing with?  

wpForo uses the TinyMCE editor. Please try to implement the solution provided here: 

https://stackoverflow.com/questions/47619233/how-to-change-the-default-font-of-tinymce-for-wordpress

Just use the font-size CSS property instead of font-family. 

Related to the editor - is there a way to add a photo to the post? I don't see any image option in the editor. 

Please read this doc:

https://wpforo.com/docs/root/topics-posts/atatch-file-to-post/

Also, wpForo has a built-in spam control system. It controls newly registered users and allows to attach a file when the user has X number of approved posts. Please manage this setting in Dashboard > Forums > Tools > Antispam > New Registered user section.

 

(@fassett99)
Joined: 5 years ago

Eminent Member
Posts: 15

@sofy Thanks!  I added the custom code, added the css, cleared cache, etc and I still see 11pt in the reply editor window.   

About adding an image - I meant to add it within the post, not as an attachment.  Is that a premium upgrade?

 

Thanks,

Evelyn

 

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@fassett99,

I added the custom code, added the css, cleared cache, etc and I still see 11pt in the reply editor window.   

I'll ask developers and let you know asap. 

About adding an image - I meant to add it within the post, not as an attachment.  Is that a premium upgrade?

You can use the code explained in this support topic to display the attached image file as an image:
 
For an advanced attachment features you should checkout wpForo Advanced Attachment addon:

 

(@fassett99)
Joined: 5 years ago

Eminent Member
Posts: 15

@sofy Hi - Thank you!!  I missed that somehow.  I added the code and it works great..

 

Evelyn

 

 

Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago
Posted by: @fassett99

Thanks!  I added the custom code, added the css, cleared cache, etc and I still see 11pt in the reply editor window.  

Please remove the old customizations you've done and just put the following code in your current active theme functions.php file:

 add_filter('wpforo_editor_settings', function ($settings){
    $settings['tinymce']['content_style'] .= 'p{font-size:14pt;}';
    return $settings;
});

Change the red marked code before using it.

3 Replies
(@fassett99)
Joined: 5 years ago

Eminent Member
Posts: 15

@sofy  Thanks!!!  That did it..

Evelyn

 

 

(@fassett99)
Joined: 5 years ago

Eminent Member
Posts: 15

@sofy  Did you know the answer to adding images within the post?  Is that an upgrade?

Evelyn

 

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@fassett99,

Please read this post. I've already provided a solution. 

https://wpforo.com/community/how-to-and-troubleshooting-2/post-and-reply-editor-show-11pt-font-size/#post-36764