php 将样式添加到Wordpress WYSIWYG编辑器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 将样式添加到Wordpress WYSIWYG编辑器相关的知识,希望对你有一定的参考价值。

html .mceContentBody { 
	font-size: 0.8em;
  	font-family: 'Gotham SSm A', 'Gotham SSm B', Helvetica, Arial, sans-serif;
	color: #686361; 
	line-height: 1.2; 
	/*width: 600px; */
	font-weight: 300;
}
h3, .wp_themeSkin .mce_h3 .mceText{
  margin: 20px 0 5px;
  font-family: 'Archer SSm A', 'Archer SSm B', 'Georgia', 'Garamond'; 
  font-weight: 700; 
  font-style: normal;
  font-size: 0.85em;
  color: #000000;
  text-transform: uppercase;
}

address{
	font-style: normal;
}

a{
	font-weight: 500;
	color: #f49672;
	text-decoration: none;
	border-bottom: 1px dotted;
}

strong{
	font-weight: 500;
	color: #f49672;
}
// in functions.php

//----------------------------------------------
//  Add styles to the WYSIWYG editor 
//----------------------------------------------
add_editor_style('wysiwyg-styles.css');
add_editor_style('//cloud.typography.com/6900872/740702/css/fonts.css');

以上是关于php 将样式添加到Wordpress WYSIWYG编辑器的主要内容,如果未能解决你的问题,请参考以下文章

PHP 添加自定义样式到可视编辑器Wordpress

php 添加样式到wordpress admin / acf flex元框突出显示

php 添加样式到wordpress admin / acf flex元框突出显示

如何给wordpress网站添加百度分享按钮或悬浮窗

WordPress - 如何将 CSS 样式添加到所有标题菜单按钮,同时排除一个

样式表将自动删除/取消注册 - WordPress