WordPress MonoChrome 主题 修改记录

一、顶部文章分类去掉“首页”(否则4个分类加“首页”,太长了,挤到下一行来了)

wp-content/themes/monochrome/js/jscript.js

> $("#menu > li:first-child").addClass("first_menu");
+ $("#menu > li:first-child+li").addClass("first_menu");
> $("#menu > li:first-child.current_page_item, #menu > li:first-child.current-cat").addClass("first_menu_active");
+ $("#menu > li:first-child+li.current_page_item, #menu > li:first-child+li.current-cat").addClass("first_menu_active");

wp-content/themes/monochrome/style.css

+ #menu li:first-child { display: none; }
> #menu .first_menu { border:none; background:none; }

二、点击某个分类后,文章标题字体过小

wp-content/themes/monochrome/style.css

- .archive_contents h2 { font-size:14px; margin:0 0 5px 0; padding:0; }
+ .archive_contents h2 { font-weight: normal; }

三、文章标题颜色不够明晰

wp-content/themes/monochrome/style.css

h2 a { color: green !important; font-weight: bold; }

四、避免分类页和搜索页中,将整篇文章的文字作为链接,改为只给“阅读全文”添加链接

wp-content/themes/monochrome/archive.php
wp-content/themes/monochrome/search.php

-<p><a href="<?php the_permalink() ?>"><?php the_excerpt_rss(); ?><span><?php _e('[ READ MORE ]', 'monochrome'); ?></span></a></p>
+<p><?php the_excerpt_rss(); ?><a href="<?php the_permalink() ?>"><span><?php _e('[ READ MORE ]', 'monochrome'); ?></span></a></p>

五、使搜索/分类页中的“阅读全文”显示更明显一点

wp-content/themes/monochrome/style.css

+ .read-more { color: green; font-size: 130%; font-weight: bold; }

六、隐藏 pre 的滚动条,实在是太丑了

wp-content/themes/monochrome/style.css

- pre { border:1px solid #ccc; background:#fafafa; padding:10px 20px; margin:0 0 1em 0; overflow:auto; }
+ pre { border:1px solid #ccc; background:#fafafa; padding:10px 2px; margin:0 0 1em 0; overflow:hidden; font-size:10px;}

七、删除 Atom Feed 链接,搞这么多干啥,让人迷糊 =_=!

wp-content/themes/monochrome/header.php

  1. 还没有评论

  1. 还没有引用通告。

cc