Please or Register to create posts and topics.

How can I change the font in the forum area, when I write a post?

If I write a post, in the field is times roman, you see it in my screen. The subject line has another font and after finish the post, the font change also.

I dont linke times roman font and want to change it. How can I do this?

 

Uploaded files:
  • a.png

Hello springer,

this is the default font for the editor from WordPress, you can also see it in the administration-editor. You can change it when you add the following lines of code to your themes style.css file:

.wp-editor {
    font-family: Verdana;
}

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

I tried that, unfortunately has no effect. In your forum, it does not work either, there is also a different font when writing than after sending. Is there another place for the adjustments?

Have you cleaned your cache after applying those changes? Yes, those editor-fonts are the WordPress default ones and I dont want to overwrite them in my plugin because other plugins may use the editor as well.

Maybe this could also help in changing the font:

https://stackoverflow.com/questions/5301805/wordpress-wysiwyg-editor-font

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thank you. If a have some time, i will test it.

I ask my designer for styling, and he told me, that the problem is not so simple. He wrote a question in your github

https://github.com/Asgaros/asgaros-forum/issues/147

 

His name is joregsteinhauer. Can you answer?

Hello springer,

I just answered him with a full code-example and instructions which should help you to fix that problem:

https://github.com/Asgaros/asgaros-forum/issues/147#issuecomment-349062245

Let me know if everything went well with it.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hi,

four years later and i have got the same problem. Looks like neither your code nor simple add_editor_style(); do work.

The only thing that works is a hack when I replace the font-family line in

wp-includes/js/tinymce/skins/wordpress/wp-content.css

Any ideas?

Thnx