centos-stream-9 centos9 配置国内源 阿里云源
The7.2最新版本(截至2015年3月22日)版本更新日志如下:
v.2.0.0 (Mar 20, 2015):
1. Improved: "Log in / log out" button behavior. 2. Improved: Light buttons styles. 3. Improved: Minor skins improvements. 4. Fixed: iOS style - benefits background hovers. 5. Fixed: iOS style - categorization icons position. 6. Fixed: Material design - lightbox issues.
v.2.0.0 (Mar 18, 2015):
1. "Material design" style added: changes image hovers, categorization and filter, pagination, load more button, tabs, accordion, contact forms, fancy date, slideshow bullets etc.
2. "Material design" buttons.
3. Two new main menu hover styles: material background; material underline.
4. Options for changing background color under content blocks.
5. Gradient for page title background.
6. New "Bold" style for icons.
7. Categorization & pagination in blog, portfolio & gallery shortcodes.
8. Categorization in blog masonry & grid template.
9. New color & appearance settings for WooCommerce cart in header.
10. Share buttons visibility setting: "always visible" or "visible on hover".
11. VC shortcode fix: toggle, accordion, icon.
12. Hover animation for social icons added.
13. New "Scale in" hover for portfolio & photo albums. "Move from bottom" and "Side move" hovers have been removed.
14. 3 new material design skins.
15. "Back button" settings.
16. Bunch of minor improvements and fixes.
之前也有文章有写道,改进了大量的内容,如果你在企业项目中使用到The7.2系列的模板,非常有必要更新升级下!
到现在也有相关贴吧有转载这两份模板免费发的帖子。其实真的,其实百十来块钱,对企业来说算个蛋,这种傻逼以为模板能当饭
吃。还有十八块倒卖本站模板的,哭笑不得,应用响应式模板的出发点完全被这些傻逼搞乱了。
事实上,响应式模板的作用,对于初创企业或者开发者而言,达到快速构建一个大气简洁的响应式站点,使用模板是最节省时
间的一个途径。所以,模板不再多,在于能否使用到。新版本替换,旧版本就等于渣。好比现在的The7.2 v2.0.1。每一次升级都
有改进。就一个百十来块钱的一包烟钱,何必?应用的好,随便二次开发,一个企业项目大几K,你这百十来块钱算个蛋。所以,
做人一定要学会换位思考,目光放长远。我们老家的一句话:“心宽,天地宽。”
The7.2 v2.0.1深度汉化企业项目线上部署前的准备工作:
第一步:解决解决Avatar头像问题
当然,这一步在模板里已经做了,直接用的多说的缓存,直接在functions.php添加如下代码
/**
* 解决Avatar头像问题
*/
function unblock_gravatar( $avatar ) {
$avatar = str_replace( array( 'www.gravatar.com', '0.gravatar.com', '1.gravatar.com', '2.gravatar.com' ), 'gravatar.duoshuo.com', $avatar );
return $avatar;
}
add_filter( 'get_avatar', 'unblock_gravatar' );
第二步:优化wordpress
事实上,直接从官网download的wordpress是有问题的,加载谷歌字体和ajax库问题,当然,这一步,也做了优化。已经共享了
,优化过的wordpress安装版。
第三步:后台美化
第四步:删除后台W图标
直接在主题functions.php添加如下代码
/**
* 删除wordpress后台W图标
*/
function wpniu_admin_bar_remove() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}
add_action('wp_before_admin_bar_render', 'wpniu_admin_bar_remove', 0);
其余的看自己需要,酌情修改。一般这几步,是要做的。做完这几步,剩下的就是部署到线上,进行优化了。优化也有相关文章。