Go to comments ↓ Home » Blog

WP 文章定时发布 & 继续优化当前主题

Wordpress又花了不少时间在这个主题上,罪过啊,不过折腾下来还是挺满意的。
这次zsofa-ova在总体上变化不大,都是细节上的优化。像A.shun这样一个主题用很长时间的,当然是不断的追求精致。

现在继续来总结一下这次的折腾,顺便分享一些相关的教程。
其实这个应该叫做wp折腾手记 5的,不过偶尔换下名字也不错。

昨天就弄好了,这回顺便尝试下WordPress定时发布文章

WordPress文章定时发布功能

这是wp自带的功能,无需任何插件。
如下图所示,编辑好日志之后在“发布”那里点击编辑,把发布时间设定为当前时间之后,发布的按钮就会自动变成定时,点击即可。

wordpress定时发布文章设置

主题header部分

最开始,zsofa-ova的搜索框设计在了header的中间,比较方便和醒目。
不过有的访客朋友看法不同:“搜索框放中间了感觉怪怪的”、“搜索框放的位置有些不太美观”。。。

wp主题header修改

之前因为右侧有twitter输出和订阅按钮,把这些放中间也不合适。现在重新调整了布局。
去掉了feedsky的按钮,和feedburner.com放在了导航栏,twitter按钮的旁边。搜索框回到了靠右地方,嗯,感觉良好。

当然,也顺手减少了header的高度。这样可以在不滚动页面的时候显示更多内容。

评论部分

把comments-ajax更新到v1.29,点击主评论回复按钮有了平滑滚动效果。
具体看这篇:《WordPress 內置嵌套評論專用 Ajax comments》,Willin Kan真是低调的大师。

评论样式也重新设计,评论者名字、发表时间、和ua信息弄成一排了。这个其实个人不是特别满意,只是换换布局。
看上去很紧凑,这也可以在一定程度上缩短了页面高度。

wp主题评论样式修改

主评论隔行使用不同的背景色,比较一目了然。简单的两行代码即可实现,这是特地请教om的。

ol.commentlist li.thread-even{background:#F2F2F2;}
ol.commentlist li.thread-odd{background:#eee;}

其他细节

文章分类和月份存档下拉选择框

  1. 侧栏加入了文章分类、月份存档下拉选择框。比较实用,不占地方。
    相关的代码可以看这篇:《WordPress 月度存档、文章分类下拉框代码》。
  2. 由于分类下拉框取代了分类列表,所以把友情链接也改成双排的,各种徽标弄到下面去。
  3. content的背景色和整个页面的色调统一起来。
  4. 去掉了日志信息、评论数和转到评论区等之前的小图标,页面更加简洁,也调整了其他背景图标的间距。
  5. 其他若干细节:简化日志底部的收藏和订阅链接、更多的运用了css3圆角。。。

已知问题

  1. 评论者名子过长的话(比如Lazyyyyyyyyyyyyyy),时间和ua信息就要挤到一起了。
  2. 两层以上的嵌套问题非常大。。暂时改回两层,不过以前就弄得很乱,无所谓了。
  3. IE6的显示继续杯具,特别是文字大小。
  4. Chrome环境下的搜索按钮不显示。
  5. Opera下底部的top按钮的问题不打算修复了,反正有手势。

累了,以后再折腾吧。

» 转载请以超链接形式注明来源:A.shun Blog » 《WP 文章定时发布 & 继续优化当前主题》
» 本文链接地址:http://shun.im/21356

» 本文采用 BY-NC-SA 协议进行授权。
» 建议通过 Rss( Feedly | Feedburner | Feedsky )方式及时获取更新。

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/ashun/shun.im/wp-includes/class-wp-comment-query.php on line 399

  1. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Internet Explorer 8.0 Internet Explorer 8.0 Windows XP Windows XP
    #1
    @

  2. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    #2
    @

  3. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 5.0.360.4 Google Chrome 5.0.360.4 Windows XP Windows XP
    #3
    @

  4. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows 7 Windows 7
    #4
    @

  5. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    #5
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.54 Opera 10.54 Windows XP Windows XP

  6. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 4.1.249.1064 Google Chrome 4.1.249.1064 Windows 7 Windows 7
    #6
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.54 Opera 10.54 Windows XP Windows XP

  7. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    TheWorld Browser TheWorld Browser Windows XP Windows XP
    #7
    @

  8. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 4.1.249.1042 Google Chrome 4.1.249.1042 Windows XP Windows XP
    #8
    @

  9. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 5.0.375.17 Google Chrome 5.0.375.17 Windows XP Windows XP
    #9
    @

  10. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    #10
    @

  11. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 4.0.295.0 Google Chrome 4.0.295.0 Windows 7 Windows 7
    #11
    @

  12. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.4 Firefox 3.6.4 Windows 7 Windows 7
    #12
    @

  13. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    #13
    @

  14. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    360Safe Explorer 360Safe Explorer Windows XP Windows XP
    #14
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.60 Opera 10.60 Windows XP Windows XP

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      GreenBrowser GreenBrowser Windows 7 Windows 7

  15. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 5.0.375.55 Google Chrome 5.0.375.55 GNU/Linux GNU/Linux
    #15
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.60 Opera 10.60 Windows XP Windows XP

  16. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    TheWorld Browser TheWorld Browser Windows 7 Windows 7
    #16
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.60 Opera 10.60 Windows XP Windows XP

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      TheWorld Browser TheWorld Browser Windows 7 Windows 7
  17. 軟硬PC

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 5.0.375.70 Google Chrome 5.0.375.70 Windows 7 Windows 7
    #17
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.54 Opera 10.54 Windows XP Windows XP

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.60 Opera 10.60 Windows XP Windows XP

  18. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 6.0.447.0 Google Chrome 6.0.447.0 Windows XP Windows XP
    #18
    @

  19. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 10.0.648.204 Google Chrome 10.0.648.204 Windows XP Windows XP
    #19
    @
Leave a Reply

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: