之前的苹果风格主题有点审美疲劳了, 换一个简朴一点的.
以前评论没有盖楼功能, 现在也加上了. 不是 WordPress 默认的分页功能, 因为其默认的分页会将所有评论读出来再分页, 这显然不合适. 另外, 我还把评论者头像显示功能打开了, 这样, 如果你在 getavatar.com 有头像, 就可以显示了. 不过, getavatar.com 好像部分被屏蔽了.
有喜欢这个主题和评论插件的朋友可以找我要.
之前的苹果风格主题有点审美疲劳了, 换一个简朴一点的.
以前评论没有盖楼功能, 现在也加上了. 不是 WordPress 默认的分页功能, 因为其默认的分页会将所有评论读出来再分页, 这显然不合适. 另外, 我还把评论者头像显示功能打开了, 这样, 如果你在 getavatar.com 有头像, 就可以显示了. 不过, getavatar.com 好像部分被屏蔽了.
有喜欢这个主题和评论插件的朋友可以找我要.
把这段代码放到 theme 里的 functions.php 文件:
function theme_pre_comment_post( $c) { $c['comment_content'] = htmlspecialchars($c['comment_content']); return $c; } add_filter( 'preprocess_comment', 'theme_pre_comment_post', '', 1);
今天无意中发现一个mac风格的Wordpress主题 i2theme, 觉得很好看, 于是Download下来, 改一下宽度, 就用上了. 以前也发现别人用过这样的mac主题.
mac的视觉效果确实非常优雅, 有机会要买一个苹果电脑用用.
Category widget with an exclude field, that you can set 'Uncategoriezed' not being shown. Based on default WordPress category widget, so it acts just like that one.
In widget setting page, add "ideawu_category" widget to Sidebar, then type "1" into the "Exclude" form field that save. Category ids are seperated by comma mark.
Download: ideawu_category.zip
编辑 wp-admin/js/page.js 和 wp-admin/js/post.js, 将如下两行注释掉.
//jQuery('#slugdiv').hide();
//jQuery('#pageslugdiv').hide();
define( 'AUTOSAVE_INTERVAL', 99999 ); // seconds
define( 'WP_POST_REVISIONS', 0 ); // disable revisions
从wp-admin/post-new.php和page-new.php中删除"wp_enqueue_script('autosave');";
在wp-admin/menu.php中搜索"update_plugins", 你就知道怎么修改了.
就算没有文章, 分类也应该显示, 而不应该隐藏.
修改wp-includes/category-template.php的wp_list_categories可带参数hide_empty.
我的简历页面(http://www.ideawu.net/resume.php)更新后, 这两个搜索引擎都没有来更新, 还是以前的内容, 不知道什么原因, 所以发篇日志试下. WordPress的SEO做得还是很好.
Google百度搜索引擎快来啊!