In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of adding Chinese fonts to the wordpress editor, the article is very detailed, has a certain reference value, interested friends must read it!
Below by the wordpress tutorial column to introduce you to the wordpress editor to add Chinese fonts, I hope to help friends in need!
WordPress comes with TinyMCE editor, for general text editing is enough, but there are still children's shoes want it to have more features, so the birth of a variety of editor plug-ins, in fact, no plug-ins can also be added to the default editor a variety of functions, the following methods can be added to the editor to select Chinese font function.
Add the following code to the functions.php template file for the current theme:
Function custum_fontfamily ($initArray) {$initArray ['font_formats script] = "Microsoft elegant black =' Microsoft elegant black'; Song style = 'Song style'; boldface = 'boldface'; imitation of Song = 'imitation of Song'; italic = 'regular'; official script = 'official script'; young circle = 'young circle'; return $initArray;} add_filter ('tiny_mce_before_init',' custum_fontfamily')
The WordPress default TinyMCE editor does not select the font feature, so you need to add the following code to the functions.php template file as well:
Function enable_more_buttons ($buttons) {$buttons [] = 'styleselect';$buttons [] =' fontselect';return $buttons;} add_filter ("mce_buttons", "enable_more_buttons")
For WordPress 4.0, the previous version has not been tried.
The above is all the contents of the method of adding Chinese fonts to the wordpress editor. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.