国内外主机
测评及优惠码

知更鸟主题Begin设置教程,流量竟然翻了一倍!

WordPress主题中,我最喜欢两个主题,一个是花了200元购买的Busy Bee汉化精简版,另一个是花了299元购买的知更鸟的主题Begin。

知更鸟主题Begin设置教程,流量竟然翻了一倍!
 remove_action( ‘wp_head’, ‘wp_enqueue_scripts’, 1 );  remove_action( ‘wp_head’, ‘feed_links’, 2 );  remove_action( ‘wp_head’, ‘feed_links_extra’, 3 );  remove_action( ‘wp_head’, ‘rsd_link’ );  remove_action( ‘wp_head’, ‘wlwmanifest_link’ );  remove_action( ‘wp_head’, ‘index_rel_link’ );  remove_action(‘wp_head’, ‘parent_post_rel_link’, 10, 0 );  remove_action(‘wp_head’, ‘start_post_rel_link’, 10, 0 );  remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10, 0 );  remove_action( ‘wp_head’, ‘locale_stylesheet’ );  remove_action(‘publish_future_post’,’check_and_publish_future_post’,10, 1 );  remove_action( ‘wp_head’, ‘noindex’, 1 );  remove_action( ‘wp_head’, ‘wp_print_styles’, 8 );  remove_action( ‘wp_head’, ‘wp_print_head_scripts’, 9 );  remove_action( ‘wp_head’, ‘wp_generator’ );  remove_action( ‘wp_head’, ‘rel_canonical’ );  remove_action( ‘wp_footer’, ‘wp_print_footer_scripts’ );  remove_action( ‘wp_head’, ‘wp_shortlink_wp_head’, 10, 0 );  remove_action( ‘template_redirect’, ‘wp_shortlink_header’, 11, 0 );  add_action(‘widgets_init’, ‘my_remove_recent_comments_style’);  function my_remove_recent_comments_style() {  global $wp_widget_factory;  remove_action(‘wp_head’, array($wp_widget_factory->widgets[‘WP_Widget_Recent_Comments’] ,’recent_comments_style’));  }  if ( !is_admin() ) {  function my_init_method() {  wp_deregister_script( ‘jquery’ );  }  add_action(‘init’, ‘my_init_method’);  }  wp_deregister_script( ‘l10n’ );

说起wordpress主题,鸟哥的大名无人不知,Begin主题多种布局,为不同需求的博主提供了方便,而且每个月都还在更新。

然而人怕出名猪怕壮,淘宝上竟卖盗版的,鸟哥为了维护正版权益,出售主题时,进行了加密。主题的功能异常强大,但对于我这种完美控,精简控来说,很多功能对于我个人而言都是鸡肋。我认为网站越简单越好,同样是wordpress,我特别羡慕煎蛋网,每天几十万的流量,煎蛋网的主题就特别煎蛋。

 rewrite /wp-admin$ $scheme://$host$uri/ permanent;  rewrite ^/1.png https://xxside.com/ permanent;  rewrite ^/2.png https://xxside.com/ permanent;

来说下这个主题后台是怎么设置的吧。

首页设置:博客布局,勾选首页幻灯,篇数显示5,选择了博客布局,后边的CMS设置,公司主页直接忽略。
基本设置:勾选wp搜索,显示相同父分类链接,代码亮亮显示,Ajax评论,评论@回复,滑动解锁才能提交评论,评论检查中文,显示评论楼层,显示正文相关文章图片,显示页底小公举,显示首页页脚链接。
网站设置:勾选设置logo。
辅助功能:勾选字母代替头像,显示简繁体转换按钮,生成当前页面二维码,启用QQ在线,启用点赞、百度分享、打赏。
SEO设置:启用SEO功能,勾选首页显示站点附表,填写描述,关键词,流量统计代码(异步),个性化页脚内容第一行:©对民网
广告设置:只勾选评论上方广告。
阿里图标://at.alicdn。com/t/font_ukr1ycxjnp9o1or.ss
定制风格:按照自己的想法,只对ccs修改如下。

/** 图片居中 / .single-content p img{margin: 0 auto;}  / 段落间距 / .single-content p { margin: 0 0 15px 0;}  / 底部背景 **/ colophon {background: #555;border-top: 1px solid #606365;} /** 去除左右箭头 / .meta-nav-r{display: none;} .meta-nav-l{display: none;}  / 顶部菜单 **/ masthead {height: 90px;} top-header {display: none;} /** 赚钱网格 /  .single-content p img{margin: 0 auto;padding-top:10px;} .wp-caption {margin: 7px;float: left;width: 23%;} .wp-caption p.wp-caption-text { font-size: 13px; line-height: 17px; padding: 0 20px 10px; margin: 0; } / 引用 **/  blockquote {  background: #d9e9ff;  padding: 10px 15px 10px 15px;  margin: 1em 3em 1em 3em;  font-size: .8em;  border-style: dotted dotted dotted solid;  border-width: 1px 1px 1px 5px;  border-color: #5bbcdd;  width: 90%; }

导航栏:自定义菜单,自定义栏目调出ccs框,在链接的ccs框输入be be-picture,可以为菜单前添加小图标,图像在http://fontawesome.io/icons/查询。

页脚小工具:添加一个没被的占用的小工具-自定义菜单,再添加一个小工具-侧边广告位。

其它侧边栏:正文侧边栏和主页侧边栏,随便添加吧。

背景颜色也可以改,所有的代码都可以添加到主题选项→定制风格→自定义样式代码框中。

body {background: url(‘图片地址') repeat top left scroll;}

修改顶部菜单导航,把template下的menu文件中的下边代码,代码在 上边,下边。

 'header', 'menu_class'=> 'top-menu', 'fallback_cb'=> 'default_menu' ) ); ?>

修改成下边代码。

 

另外代码添加导航栏,template下的menu文件,这段代码在上边,

登录

找回密码

注册