折腾纪之wordpress :后台首页
Written on 12/11/2008

我还是在看越狱第四季,虽然说什么不好看, 收视率不高,但现在也上升了啊。。
我从wordpress官方下载来的WP,首先就得找个中文包,变成中文版的。
我原先用wordpress 2.6的时候就就觉得管理首页太繁杂了。本来空间速度不怎么样,载入就更慢了。
我原先google了一下,找到poshi的一篇文章,看了一下,挺齐全的。
请毫不留情的删除以下代码,整理如下:
Version 2.6:
在wp-admin/index.php文件中找到以下代码:
<script type=”text/javascript”>
jQuery(function($) {
var ajaxWidgets = {
dashboard_incoming_links: ‘incominglinks’,
dashboard_primary: ‘devnews’,
dashboard_secondary: ‘planetnews’,
dashboard_plugins: ‘plugins’
};
$.each( ajaxWidgets, function(i,a) {
var e = jQuery(’#’ + i + ‘ div.dashboard-widget-content’).not(’.dashboard-widget-control’).find(’.widget-loading’);
if ( e.size() ) { e.parent().load(’index-extra.php?jax=’ + a); }
} );
});
</script>
我修改后留下:
<script type=”text/javascript”>
jQuery(function($) {
var ajaxWidgets = {
dashboard_incoming_links: ‘incominglinks’,
dashboard_plugins: ‘plugins’
};
$.each( ajaxWidgets, function(i,a) {
var e = jQuery(’#’ + i + ‘ div.dashboard-widget-content’).not(’.dashboard-widget-control’).find(’.widget-loading’);
if ( e.size() ) { e.parent().load(’index-extra.php?jax=’ + a); }
} );
});
</script>
然后在wp-admin/includes/dashboard.php文件中,你只需留下:
25: // Recent Comments Widget :最新评论。
38: // Incoming Links Widget :用 google blog search 检查链到你blog的链接。
删除你不需要的:
58: // WP Plugins Widget :官方最新插件。
65: // Primary feed (Dev Blog) Widget :官方wordpress开发相关。
87: // Secondary Feed (Planet) Widget :官方wordpress新闻。
Version 2.7:
这个版本的更简单,直接在wp-admin/includes/dashboard.php中删除不需要的组件就OK了。
我们只需要的主要组件如下:

// Right Now :当前状况。
// Recent Comments Widget :最新评论。
// Incoming Links Widget :用 google blog search 检查链到你blog的链接。
// QuickPress Widget :快速发布文章的组件。
// Recent Drafts : 最新草稿。
// Filter widget order :未知。
自己可以测试下。欢迎评论。
Filed in: 技术.
你的sidebar(侧栏)在IE下被挤到下边去了,很影响外观,最好把侧栏的宽度改小10px….
XYON Reply:
十二月 11th, 2008 at 09:18
谢谢哈。。。。。。很荣幸。。
12/11/2008 @ 08:12