注:必须在阅读里设置为博客才能使用以下内容
avada->theme options ->blog:
Page Title Bar:页面最上面那层标题
Blog Page Title:page title 的内容
Blog Page Subtitle:page title 的二级标题
Blog Layout:布局
large:
medium:中等
large laternate:
mediumlaternate:中等带日期
grid:网格
timeline:时间轴
Pagination Type:分页样式
Grid Layout Columns:分成几列
Grid Layout Column Spacing:列的间隙
Blog Alternate Layout Month and Year Format:标题带时间下,年月的代码
Blog Alternate Layout Day Format:标题带时间下,日的代码
Blog Timeline Layout Date Format:时间轴下,日期代码
格式为:
2016 11 12 星期六
Y m j l
如果小写y的话为年份后两位
如果M大写的话为11月
j/l 大写无意义
Post Meta:列表页面下的root/日期等内容
————————————————————————————————–汉化.pot 为模板
.po为源文件
.mo为生成的文件
wordpress的汉化文件地址:\wp-content\languages\admin-zh_CN.po
fusion的汉化文件地址:\wp-content\plugins\fusion-core\languages\fusion-core.pot
汉化编辑器:poedit
————————————————————————————————-字体方法一:
mac默认为微软雅黑,windows默认为宋体,有毛边解决办法:
avada->theme options ->custom css ->css code
*{
font-family:
'IcoMoon',
'fontawesome',
'Helvetica Neue',
Helvetica,
STHeiti,
'Microsoft YaHei',
Arial,
Verdana,
sans-serif
!important;
}
注:如果社会化图标那里变成了黑框,添加'IcoMoon' ,即可,注意顺序
方法二:
修改:\wp-content\themes\Avada\includes\class-avada-data.php
添加"Microsoft YaHei"=>"=微软雅黑=",
$standard_fonts = array( 'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif', "Microsoft YaHei"=>"=微软雅黑=", "'Arial Black', Gadget, sans-serif" => "'Arial Black', Gadget, sans-serif", "'Bookman Old Style', serif" => "'Bookman Old Style', serif", "'Comic Sans MS', cursive" => "'Comic Sans MS', cursive", "Courier, monospace" => "Courier, monospace", "Garamond, serif" => "Garamond, serif", "Georgia, serif" => "Georgia, serif", "Impact, Charcoal, sans-serif" => "Impact, Charcoal, sans-serif", "'Lucida Console', Monaco, monospace" => "'Lucida Console', Monaco, monospace", "'Lucida Sans Unicode', 'Lucida Grande', sans-serif" => "'Lucida Sans Unicode', 'Lucida Grande', sans-serif", "'MS Sans Serif', Geneva, sans-serif" => "'MS Sans Serif', Geneva, sans-serif", "'MS Serif', 'New York', sans-serif" => "'MS Serif', 'New York', sans-serif", "'Palatino Linotype', 'Book Antiqua', Palatino, serif" => "'Palatino Linotype', 'Book Antiqua', Palatino, serif", "Tahoma, Geneva, sans-serif" => "Tahoma, Geneva, sans-serif", "'Times New Roman', Times, serif" => "'Times New Roman', Times, serif", "'Trebuchet MS', Helvetica, sans-serif" => "'Trebuchet MS', Helvetica, sans-serif", "Verdana, Geneva, sans-serif" => "Verdana, Geneva, sans-serif" ); 修改:avada->theme options ->Typography ->H1 Headers Typography:Microsoft YaHei ->Body Typography:Microsoft YaHei 保存。
-------------------------------------------------------------------------------------------------
中文路径自动翻译成英文路径百度下载wp-youdao-slug,这里wordpress的插件库里没有
注册有道API
如何使用:
当新文章发布时,url会自动翻译成英文
如果是老新闻,修改固定链接,编辑,删掉原内容,填写0即可。