<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ZH CEXO's BLOG &#187; 主题</title>
	<atom:link href="http://www.zhcexo.com/tag/theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhcexo.com</link>
	<description>探寻网络 分享发现</description>
	<lastBuildDate>Thu, 22 Dec 2011 08:16:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>从Beta到Alpha</title>
		<link>http://www.zhcexo.com/beta-to-alpha/</link>
		<comments>http://www.zhcexo.com/beta-to-alpha/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 07:26:02 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[设计作品]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=1100</guid>
		<description><![CDATA[不知道有没有人注意到我博客LOGO旁边的beta小气泡。之所以挂上这个beta，因为我在想，主题这种东西一次不可能那么完美，所以就做一部分出来，再慢慢完善，等到机会合适了，就把beta这个标识撤下来。不过对于自己的Vitality，显然beta不知道什么时候才拿得下来……上次的文章《收到了RJ童鞋精心制作的2011年台历》中我就提到过，我的新主题会由RJ同学来制作，不过显然RJ同学非常忙，所以我也不催她，希望她尽力做好就行了。

从我学习了CSS开始，我使用的主题基本上都是自己做的，一边做一边学习。然后想了想，可能已经做到第六个了。下一个会是什么样子，问RJ同学吧~先来回顾一下：

<span class="readmore"><a href="http://www.zhcexo.com/beta-to-alpha/" title="从Beta到Alpha">阅读全文——共382字</a></span>]]></description>
			<content:encoded><![CDATA[<p>不知道有没有人注意到我博客LOGO旁边的beta小气泡。之所以挂上这个beta，因为我在想，主题这种东西一次不可能那么完美，所以就做一部分出来，再慢慢完善，等到机会合适了，就把beta这个标识撤下来。不过对于自己的<a title="先上新主题，再慢慢完善" href="http://www.zhcexo.com/new-private-theme-vitality/" target="_blank">Vitality</a>，显然beta不知道什么时候才拿得下来……上次的文章<a title="收到了RJ童鞋精心制作的2011年台历" href="http://www.zhcexo.com/received-present-for-2011-from-rj/" target="_blank">《收到了RJ童鞋精心制作的2011年台历》</a>中我就提到过，我的新主题会由RJ同学来制作，不过显然<a title="RJ同学的博客" href="http://rjcappella.wordpress.com/" target="_blank">RJ同学</a>非常忙，所以我也不催她，希望她尽力做好就行了。</p>
<p>从我学习了CSS开始，我使用的主题基本上都是自己做的，一边做一边学习。然后想了想，可能已经做到第六个了。下一个会是什么样子，问RJ同学吧~先来回顾一下：</p>
<p><span id="more-1100"></span></p>
<p style="text-align: center;"><img src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_ruj4XAh2Njs%2FTRrd-J59I4I%2FAAAAAAAADF8%2FEtwuPn_TGaA%2Fs800%2Fthemes.jpg" alt="从Beta到Alpha" width="608" height="729" title="从Beta到Alpha" /></p>
<p>显然光做主题是不够的，但是很多时候自己的一些想法都可以通过这种媒介表达出来，可以学到很多东西。新的东西正在出现，要学习的越来越多。这只是一个开始，对自己来说，正处于Alpha阶段……</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/be-a-new-man/" title="从明天起，做一个XX的人">从明天起，做一个XX的人</a></li><li><a href="http://www.zhcexo.com/recent-changes-of-the-blog/" title="近期博客上一点点整改">近期博客上一点点整改</a></li><li><a href="http://www.zhcexo.com/new-private-theme-vitality/" title="先上新主题，再慢慢完善">先上新主题，再慢慢完善</a></li><li><a href="http://www.zhcexo.com/wordpress-child-themes/" title="WordPress子主题（翻译）">WordPress子主题（翻译）</a></li><li><a href="http://www.zhcexo.com/2-years-100-posts-graduation/" title="2、100、O">2、100、O</a></li><li><a href="http://www.zhcexo.com/change-rss-url/" title="换了下订阅地址">换了下订阅地址</a></li><li><a href="http://www.zhcexo.com/2009-xmas-and-year-end-report/" title="圣诞快乐和不是总结的总结">圣诞快乐和不是总结的总结</a></li><li><a href="http://www.zhcexo.com/new-theme-spring-preview/" title="主题设计图Spring，谁要？">主题设计图Spring，谁要？</a></li><li><a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/" title="换掉旧主题，正式启用Dark Spring">换掉旧主题，正式启用Dark Spring</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/" title="完成新主题Dark Spring的主页部分">完成新主题Dark Spring的主页部分</a></li></ul><hr />
<p>© ZH CEXO for <a href="http://www.zhcexo.com">ZH CEXO's BLOG</a>, 2010. |
<a href="http://www.zhcexo.com/beta-to-alpha/">查看原文</a> |
<a href="http://www.zhcexo.com/beta-to-alpha/#comments">28 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/html5/" rel="tag">html5</a>, <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a>, <a href="http://www.zhcexo.com/tag/blog/" rel="tag">博客</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/beta-to-alpha/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>近期博客上一点点整改</title>
		<link>http://www.zhcexo.com/recent-changes-of-the-blog/</link>
		<comments>http://www.zhcexo.com/recent-changes-of-the-blog/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 14:07:14 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[设计作品]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[胡说八道]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=1021</guid>
		<description><![CDATA[这几天一直在折腾一些事情，其实也就是乱搞，一边想把自己做的事情写出来，一边又嫌麻烦没有写，又或者是感觉没什么可写的，反而又不知道该写什么，人生就是如此纠结。既然都是乱写，那就写一下近期博客主题上面的整改吧。

这个新主题8月1日上线的，和之前的主题不同，这个主题比较简洁，没什么太花哨的元素，这样的话，正在学习js的我，折腾起来手感可能会好一点。一直以为js是个麻烦的东西，好难学会，但自己静下心来看了会书，感觉也没那么复杂，当然啦，想学得深入肯定是不简单的。不过书上介绍，学习js的过程中，最好学习另外一门编程语言，形成良好的编程观念和习惯，推荐学习C或者Java，这个我暂没兴趣-,-。下面是近期整改的内容：

<span class="readmore"><a href="http://www.zhcexo.com/recent-changes-of-the-blog/" title="近期博客上一点点整改">阅读全文——共1068字</a></span>]]></description>
			<content:encoded><![CDATA[<p>这几天一直在折腾一些事情，其实也就是乱搞，一边想把自己做的事情写出来，一边又嫌麻烦没有写，又或者是感觉没什么可写的，反而又不知道该写什么，人生就是如此纠结。既然都是乱写，那就写一下近期博客主题上面的整改吧。</p>
<p><a href="http://www.zhcexo.com/new-private-theme-vitality/" target="_blank" title="先上新主题，再慢慢完善">这个新主题8月1日上线的</a>，和之前的主题不同，这个主题比较简洁，没什么太花哨的元素，这样的话，正在学习js的我，折腾起来手感可能会好一点。一直以为js是个麻烦的东西，好难学会，但自己静下心来看了会书，感觉也没那么复杂，当然啦，想学得深入肯定是不简单的。不过书上介绍，学习js的过程中，最好学习另外一门编程语言，形成良好的编程观念和习惯，推荐学习C或者Java，这个我暂没兴趣-,-。下面是近期整改的内容：</p>
<p><span id="more-1021"></span></p>
<h3>链接上的气泡提示</h3>
<p style="text-align: center;"><img src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_ruj4XAh2Njs%2FTGqWjJFyF5I%2FAAAAAAAAC8g%2FaXMEMLj3WkI%2Fs800%2Fbc-1.jpg" alt="近期博客上一点点整改"  title="近期博客上一点点整改" /></p>
<p>近期来看过博客的朋友们应该知道，我全站的链接上，用鼠标悬浮的时候都会出现黑色半透明的气泡提示。本来这种效果在别人的博客上也都见过了，而且别人的博客上有提示里面还带有链接，而我的没有。要做出链接其实也不麻烦，只不过我做这个提示的作用是，想让a标签里面的title属性快点显示，那么有的a标签里面没有title属性，本来我定义的是&ldquo;点击访问&rdquo;这个汉字，但<a href="http://orzdream.com/" title="orzdream">netputer</a>小盆友提出，如果没有title属性就别显示了，结果我就按照他的意思修改了一下。</p>
<h3>鼠标悬浮显示@reply的评论</h3>
<p style="text-align: center;"><img src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_ruj4XAh2Njs%2FTF-gWnbm8AI%2FAAAAAAAAC8I%2FbwpjrKDl-kY%2Fs800%2Freply-1.png" alt="近期博客上一点点整改"  title="近期博客上一点点整改" /></p>
<p>这个我已经<a href="http://www.zhcexo.com/hover-to-show-comment/" target="_blank" title="鼠标悬浮显示@reply的评论">专门写了一篇文章了</a>，介绍得很清楚，有兴趣的同学自己去看看。当然我也收到意见说嵌套可能会更好，其实我也觉得嵌套更好，不然WordPress不会原生支持它，但出于习惯的考虑，我还是使用了@reply方式，并使用这种鼠标悬浮显示评论的方法提高用户体验，希望大家喜欢。</p>
<h3>内容专注模式</h3>
<p style="text-align: center;"><img src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_ruj4XAh2Njs%2FTGqWjJcAMVI%2FAAAAAAAAC8k%2FcqsYWVpgUy0%2Fs800%2Fbc-2.jpg" alt="近期博客上一点点整改"  title="近期博客上一点点整改" /></p>
<p>我不知道到底有多少人喜欢对着屏幕来看文章，又有多少人真正认真去看别人写的文章，一般如果文章是我很感兴趣的话题，我会仔细地看完。但是如果有人在我的博客上认真看文章的话，可能时间一长眼睛会不舒服，因为新主题和旧主题比起来背景太白了，并且我的文章一般都不算短吧&hellip;&hellip;（汗！）我之前有介绍过<a href="http://www.zhcexo.com/add-safari5-reader-to-firefox-chrome/" target="_blank" title="为Firefox和Chrome加上Safari5的阅读器功能">Safari 5推出的阅读模式</a>，受它的启发，我就在文章页的导航前面加上了&ldquo;内容专注模式&rdquo;，将背景用黑幕遮起来，希望大家阅读的时候眼睛能好受一点，当然也是希望大家能认真读我写的东西啦（笑）。这个功能本质上和有些博客上的&ldquo;关闭侧边栏&rdquo;没什么太大区别，但我只是想换一种方式实现类似功能，不太想千篇一律。</p>
<p>上面的图中能找出点什么信息来么？呵呵，希望你能知道，那也许是我下篇文章要写的内容。</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/chat-before-new-term-begins/" title="开学了，闲聊+扯淡">开学了，闲聊+扯淡</a></li><li><a href="http://www.zhcexo.com/bottons-with-jquery-css3/" title="用jQuery或者CSS3创建简单的动态按钮">用jQuery或者CSS3创建简单的动态按钮</a></li><li><a href="http://www.zhcexo.com/tips-for-jquery-animation/" title="jQuery中处理动画序列引起的问题">jQuery中处理动画序列引起的问题</a></li><li><a href="http://www.zhcexo.com/be-a-new-man/" title="从明天起，做一个XX的人">从明天起，做一个XX的人</a></li><li><a href="http://www.zhcexo.com/beta-to-alpha/" title="从Beta到Alpha">从Beta到Alpha</a></li><li><a href="http://www.zhcexo.com/received-present-for-2011-from-rj/" title="收到了RJ童鞋精心制作的2011年台历">收到了RJ童鞋精心制作的2011年台历</a></li><li><a href="http://www.zhcexo.com/colortip-fixed-for-ie6/" title="修正一下jQuery插件Colortip在IE6下面的显示问题">修正一下jQuery插件Colortip在IE6下面的显示问题</a></li><li><a href="http://www.zhcexo.com/hover-to-show-comment/" title="鼠标悬浮显示@reply的评论">鼠标悬浮显示@reply的评论</a></li><li><a href="http://www.zhcexo.com/new-private-theme-vitality/" title="先上新主题，再慢慢完善">先上新主题，再慢慢完善</a></li><li><a href="http://www.zhcexo.com/wordpress-child-themes/" title="WordPress子主题（翻译）">WordPress子主题（翻译）</a></li></ul><hr />
<p>© ZH CEXO for <a href="http://www.zhcexo.com">ZH CEXO's BLOG</a>, 2010. |
<a href="http://www.zhcexo.com/recent-changes-of-the-blog/">查看原文</a> |
<a href="http://www.zhcexo.com/recent-changes-of-the-blog/#comments">32 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/jquery/" rel="tag">jQuery</a>, <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a>, <a href="http://www.zhcexo.com/tag/comment/" rel="tag">胡说八道</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/recent-changes-of-the-blog/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>先上新主题，再慢慢完善</title>
		<link>http://www.zhcexo.com/new-private-theme-vitality/</link>
		<comments>http://www.zhcexo.com/new-private-theme-vitality/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 15:56:15 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[设计作品]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=1013</guid>
		<description><![CDATA[先囧一下，又是这么晚更新文章，关键是折腾这个新主题去了，咯，现在它就摆在大家面前了，我把原来的PSD图放一个看看吧：



本来是想把每篇文章第一张图片放在首页的，后来写代码写着，发现不要图片看上去也挺工整的，再说图片放首页的话，加载起来肯定会慢，所以就不加吧。

<span class="readmore"><a href="http://www.zhcexo.com/new-private-theme-vitality/" title="先上新主题，再慢慢完善">阅读全文——共464字</a></span>]]></description>
			<content:encoded><![CDATA[<p>先囧一下，又是这么晚更新文章，关键是折腾这个新主题去了，咯，现在它就摆在大家面前了，我把原来的PSD图放一个看看吧：</p>
<p style="text-align: center;"><img src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_ruj4XAh2Njs%2FTFWXMcBD1OI%2FAAAAAAAAC70%2F88vq3axta7I%2Fs800%2Fvitality.png" title="先上新主题，再慢慢完善" alt="先上新主题，再慢慢完善" /></p>
<p>本来是想把每篇文章第一张图片放在首页的，后来写代码写着，发现不要图片看上去也挺工整的，再说图片放首页的话，加载起来肯定会慢，所以就不加吧。</p>
<p>我承认我变懒了，这次的主题很多地方使用的CSS3的属性，所以对IE系列的浏览器会不太友好，但我不想再去折腾了，就这样吧，好的解决方法就算了。另外值得一提的是，由于Opera对CSS3支持的有限，这个新主题在Opera下面也不是很完善&hellip;&hellip;</p>
<p><span id="more-1013"></span></p>
<p>哦，对了，新主题的名字叫Vitality，活力的意思，与<a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/" target="_blank" title="换掉旧主题，正式启用Dark Spring">暗淡的春天</a>相比，这个应该新鲜不少了吧，先用着再说，有问题再改，功能方面慢慢完善。</p>
<p>有一个问题，我使用了mail to commentors插件，按说应该是回复中含有&rdquo;@user:&rdquo;这样的字样就能发邮件的，这次我用js写的这个@回复功能，发现插件不会发送邮件了，请问有人知道解决方法么？</p>
<p>最后，大家要是看出了什么问题，也请留言提出，谢谢了！</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/new-theme-spring-preview/" title="主题设计图Spring，谁要？">主题设计图Spring，谁要？</a></li><li><a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/" title="换掉旧主题，正式启用Dark Spring">换掉旧主题，正式启用Dark Spring</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/" title="完成新主题Dark Spring的主页部分">完成新主题Dark Spring的主页部分</a></li><li><a href="http://www.zhcexo.com/wordpress-child-themes/" title="WordPress子主题（翻译）">WordPress子主题（翻译）</a></li><li><a href="http://www.zhcexo.com/theme-easyline-released/" title="发布新主题EasyLine">发布新主题EasyLine</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-brighter-day-released/" title="发布新主题Brighter Day">发布新主题Brighter Day</a></li><li><a href="http://www.zhcexo.com/brighter-day-preview/" title="Brighter Day Preview">Brighter Day Preview</a></li><li><a href="http://www.zhcexo.com/maybe-the-last-theme-for-linxo/" title="可能是最后一个主题Linxo V1">可能是最后一个主题Linxo V1</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-red-and-black-released/" title="发布新主题－－红与黑">发布新主题－－红与黑</a></li><li><a href="http://www.zhcexo.com/new-theme-simple-blue-for-linxo/" title="换上新主题：Simple Blue">换上新主题：Simple Blue</a></li></ul><hr />
<p>© ZH CEXO for <a href="http://www.zhcexo.com">ZH CEXO's BLOG</a>, 2010. |
<a href="http://www.zhcexo.com/new-private-theme-vitality/">查看原文</a> |
<a href="http://www.zhcexo.com/new-private-theme-vitality/#comments">52 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/design/" rel="tag">design</a>, <a href="http://www.zhcexo.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/new-private-theme-vitality/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>WordPress子主题（翻译）</title>
		<link>http://www.zhcexo.com/wordpress-child-themes/</link>
		<comments>http://www.zhcexo.com/wordpress-child-themes/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 15:03:16 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[学习经历]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=970</guid>
		<description><![CDATA[WordPress的子主题继承其他某个主题（父主题）的功能，允许你对父主题进行修改，增加其他功能等。本文将指导你如何创建一个基本的子主题，并阐释你能用它做什么。作为例子，本文使用WordPress 3.0的新默认主题Twenty Ten作为父主题。

制作一个子主题非常简单，创建一个文件夹，然后将一个格式正确的style.css文件放入里面，你的子主题就做好了！只需要懂得一点点HTML和CSS的知识，你就能使用这个基本的子主题对父主题进行样式、结构等任何程度的修改而无需改变父主题自身的文件。这样，当父主题升级更新后，你的修改也会被保留。

<span class="readmore"><a href="http://www.zhcexo.com/wordpress-child-themes/" title="WordPress子主题（翻译）">阅读全文——共3753字</a></span>]]></description>
			<content:encoded><![CDATA[<p style="text-align:center"><img src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_ruj4XAh2Njs%2FTEWwGiBT_MI%2FAAAAAAAAC7k%2FeqZgH3CrZec%2Fs800%2Fchild-theme-lead.jpg" alt="WordPress子主题（翻译）"  title="WordPress子主题（翻译）" /></p>
<p>WordPress的子主题继承其他某个主题（父主题）的功能，允许你对父主题进行修改，增加其他功能等。本文将指导你如何创建一个基本的子主题，并阐释你能用它做什么。作为例子，本文使用<a title="Version 3.0" target="_blank" href="http://codex.wordpress.org/Version_3.0">WordPress 3.0</a>的新默认主题Twenty Ten作为父主题。</p>
<p>制作一个子主题非常简单，创建一个文件夹，然后将一个格式正确的style.css文件放入里面，你的子主题就做好了！只需要懂得一点点HTML和<a title="CSS" target="_blank" href="http://codex.wordpress.org/CSS">CSS</a>的知识，你就能使用这个基本的子主题对父主题进行样式、结构等任何程度的修改而无需改变父主题自身的文件。这样，当父主题升级更新后，你的修改也会被保留。</p>
<p><span id="more-970"></span></p>
<p>基于这个原因，我们推荐使用子主题对一个主题进行修改。</p>
<p>如果对PHP、<a title="Templates" target="_blank" href="http://codex.wordpress.org/Templates">WordPress模板</a>和<a title="WordPress plugin API" target="_blank" href="http://codex.wordpress.org/Plugin_API">WordPress插件API</a>有个基本的了解，你几乎可以用子主题对父主题的每一个方面进行扩展，并且，依然不用改变父主题自身的文件。</p>
<h3>目录结构</h3>
<p>子主题放在<em>wp-content/themes</em>目录下属于自己的目录里。下面的结构显示的就是子主题和它的父主题（Twenty Ten）在典型的WordPress目录结构中的位置：</p>
<ul style="list-style-type: square; margin-left: 20px; margin-bottom: 20px;">
<li style="list-style-type: square;"><b>public_html</b>
<ul style="list-style-type: square; margin-left: 20px;">
<li style="list-style-type: square;"><b>wp-content</b>
<ul style="list-style-type: square; margin-left: 20px;">
<li style="list-style-type: square;"><strong>themes </strong>（主题存放的目录）
<ul style="list-style-type: square; margin-left: 20px;">
<li style="list-style-type: square;"><b>twentyten</b> （示例中父主题Twenty Ten的目录）</li>
<li style="list-style-type: square;"><b>twentyten-child</b> （子主题存放的目录，可以任意命名）
<ul style="list-style-type: square; margin-left: 20px;">
<li style="list-style-type: square;"><b>style.css</b> （子主题中不可或缺的文件，文件名必需为 <em>style.css</em>）</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>这个文件夹里面可以少至只包含一个<em>style.css</em>文件，也可以包含多至一个完整WordPress主题所拥有的文件：</p>
<p>1. style.css（必需）</p>
<p>2. functions.php（可选）</p>
<p>3. 模板文件（可选）</p>
<p>4. 其他文件（可选）</p>
<p>让我们看看它们是如何一一起作用的。</p>
<h3>必需的style.css文件</h3>
<p><em>style.css</em>是一个子主题唯一<strong>必须</strong>的文件。它的头部提供的信息让WordPress辨认出子主题，并且<strong>重写父主题中的style.css文件</strong>。</p>
<p>对于任何WordPress主题，头部信息必须位于文件的顶端，唯一的区别就是子主题中的<code>Template:</code>行是必须的，因为它让WordPress知道子主题的父主题是什么。</p>
<p>下面是一个<em>style.css</em>文件的头部信息的示例：</p>
<pre>
/*
Theme Name:    Twenty Ten Child
Theme URI:     http://example.com/
Description:   Child theme for the Twenty Ten theme
Author:        Your name here
Author URI:    http://example.com/about/
Template:      twentyten
Version:       0.1.0
*/
</pre>
<p>逐行的简单解释：</p>
<p>Theme Name（必需的）：子主题的名称</p>
<p>Theme URI（可选的）：子主题的主页</p>
<p>Description（可选的）：子主题的描述。比如：我的第一个子主题，真棒！</p>
<p>Author URI（可选的）：作者主页</p>
<p>Author（可选的）：作者的名字</p>
<p>Template（必需的）：父主题的<strong>目录名</strong>，区别大小写</p>
<p>Version（可选的）：子主题的版本。比如：0.1，1.0，等</p>
<p>*/ 这个关闭标记的后面部分，就会按照一个常规的样式表文件一样生效，你可以把你想对WordPress应用的样式规则都写在它的后面。</p>
<p>要注意的是，子主题的样式表会替换父主题的样式表而生效。（事实上WordPress根本就不会载入父主题的样式表。）所以，如果你想简单地改变父主题中的一些样式和结构&mdash;&mdash;而不是从头开始制作新主题&mdash;&mdash;你必须明确的导入父主题的样式表，然后对它进行修改。下面的例子告诉你如何使用<code>@import</code>规则完成这个。</p>
<h3>一个子主题的范例</h3>
<p>这个例子中的父主题是Twenty Ten，我们喜欢这个主题的几乎每个部分，除了网站标题的颜色，因为我想把它从黑色的改成绿色的。使用子主题的话，只用完成以下三个简单的步骤：</p>
<p>1. 在<em>wp-content/themes</em>目录下创建一个新目录，并将它命名为<em>twentyten-child</em>（或其他你喜欢的名称）</p>
<p>2. 将下面的代码保存在名为<em>style.css</em>的文件里，并将它放到新建的这个文件夹</p>
<p>3. 转到WordPress的控制台&gt;主题，然后激活你的新主题：Twenty Ten Child。</p>
<pre>
/*
Theme Name:    Twenty Ten Child
Description:   Child theme for the Twenty Ten theme
Author:        Your name here
Template:      twentyten
*/
@import url(&ldquo;../twentyten/style.css&rdquo;);
#site-title a{
    color:#009900;
}
</pre>
<p>下面一步步解释上面代码的作用：</p>
<p>1. /* 开启子主题的头部信息。</p>
<p>2. Theme Name: 子主题名称的声明。</p>
<p>3. Description: 主题的描述（可选，也可被省略）。</p>
<p>4. Author: 作者名字的声明（可选，也可被省略）。</p>
<p>5. Template: 声明子主题的父主题，换言之，父主题所在的文件夹的名称，区分大小写</p>
<p>6. */ 子主题头部信息的关闭标记</p>
<p>7. 用@import规则将父主题的样式表调入</p>
<p>8. #site-title a定义网站标题的颜色（绿色），覆盖父主题中相同的样式规则。</p>
<p>注意@import规则</p>
<p>需要注意的是，在@import规则之前没有其他的CSS样式规则，如果你将其他的规则置于它之上，那么它将无效，并且父主题的样式表不会被导入。</p>
<h3>使用 functions.php</h3>
<p>不像<em>style.css，</em>子主题中的<em>functions.php</em>不会覆盖父主题中对应功能，而是将新的功能加入到父主题的<em>functions.php</em>中。（其实它会在父主题文件加载<strong>之前</strong>先载入。）</p>
<p>这样，子主题的<em>functions.php</em>提供了一个灵活稳定的方式来修改父主题的功能。如果你想在你的主题里加入一些PHP函数，最快的方式可能是打开<em>functions.php</em>文件然后加入进去。但那样并不灵活：下次你的主题升级更新了，你加入的新功能就会丢失掉。相反地，如果你使用子主题，将<em>functions.php</em>文件放进去，再将你想加入的功能写进这个文件里，那么这个功能同样会工作得很好，并且对于父主题以后的升级更新，子主题中加入的功能也不会受到影响。</p>
<p><em>functions.php</em>文件的结构非常简单：将PHP起始标签置于顶部，关闭标签置于底部，它们之间就写上你自己的PHP函数。你可以写得很多，也可以写得很少，反正按你所需。下面的示例是一个基本的<em>functions.php</em>文件的写法，作用是将favicon链接加入到HTML页面的head元素里面。</p>
<pre>
&lt;?php
function favicon_link(){
    echo &lsquo;&lt;link rel=&rdquo;shortcut icon&rdquo; type=&rdquo;image/x-icon&rdquo; href=&rdquo;/favicon.ico&rdquo; /&gt;&rsquo; . &ldquo;\n&rdquo;;
}
add_action(&lsquo;wp_head&rsquo;,&rsquo;favicon_link&rsquo;);
?&gt;
</pre>
<p>给主题作者的提示。事实上子主题的<em>functions.php</em>首先加载意味着你的主题的用户功能可插入&mdash;&mdash;即子主题是可替换的&mdash;&mdash;通过有条件地进行声明。例如：</p>
<pre>
if (!function_exists(&lsquo;theme_special_nav&rsquo;)){
    function theme_special_nav(){
        // Do something.
    }
}
</pre>
<p>用这种方式，子主题可以替换父主题中的一个PHP函数，只需要简单地对它再次声明。</p>
<h3>模板文件</h3>
<p><a title="Templates" target="_blank" href="http://codex.wordpress.org/Templates">模板文件</a>在子主题中的表现和<em>style.css</em>一样，它们会覆盖父主题中的相同文件。子主题可以覆盖任何父主题模板中的文件，只需要创建同名文件就行。（注意：<em>index.php</em>在WordPress3.0及以上版本才能被覆盖。）</p>
<p>同样，这项WordPress的功能允许你修改父主题的样式功能而不用去编辑父主题的文件，并且你的修改能让你在更新父主题后继续保留。</p>
<p>下面是一些使用模板文件的子主题的例子：</p>
<p>增加一个父主题没有提供的模板（例如：网站地图页面的模板，或者一单栏页面，它们在页面编辑，模板选择里是可用的）</p>
<p>增加一个比父模板更加具体的模板（见<a title="Template Hierarchy" target="_blank" href="http://codex.wordpress.org/Template_Hierarchy">模板级别</a>）。（例如：新加的<em>tag.php</em>模板用于按tag归档的文章来代替父主题中通常的<em>archive.php</em>模板。）</p>
<p>替换父主题中的一个模板（例：使用你自己的<em>home.php</em>来覆盖父主题中的<em>home.php</em>）</p>
<h3>其他文件</h3>
<p>除了<em>style.css</em>，<em>functions.php</em>，<em>index.php</em>和<em>home.php</em>，子主题可以使用任何正式主题使用的类型的文件，只要文件被正确链接。打个比方，你可以使用在样式表里或者Javascript文件里链接的图标、图片，或者从<em>functions.php</em>文件中调用出来的额外PHP文件。</p>
<p>Refer <a title="Child Themes" target="_blank" href="http://codex.wordpress.org/Child_Themes">Child Themes</a> in WordPress Codex</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/new-private-theme-vitality/" title="先上新主题，再慢慢完善">先上新主题，再慢慢完善</a></li><li><a href="http://www.zhcexo.com/new-theme-spring-preview/" title="主题设计图Spring，谁要？">主题设计图Spring，谁要？</a></li><li><a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/" title="换掉旧主题，正式启用Dark Spring">换掉旧主题，正式启用Dark Spring</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/" title="完成新主题Dark Spring的主页部分">完成新主题Dark Spring的主页部分</a></li><li><a href="http://www.zhcexo.com/theme-easyline-released/" title="发布新主题EasyLine">发布新主题EasyLine</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-brighter-day-released/" title="发布新主题Brighter Day">发布新主题Brighter Day</a></li><li><a href="http://www.zhcexo.com/brighter-day-preview/" title="Brighter Day Preview">Brighter Day Preview</a></li><li><a href="http://www.zhcexo.com/maybe-the-last-theme-for-linxo/" title="可能是最后一个主题Linxo V1">可能是最后一个主题Linxo V1</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-red-and-black-released/" title="发布新主题－－红与黑">发布新主题－－红与黑</a></li><li><a href="http://www.zhcexo.com/new-theme-simple-blue-for-linxo/" title="换上新主题：Simple Blue">换上新主题：Simple Blue</a></li></ul><hr />
<p>© ZH CEXO for <a href="http://www.zhcexo.com">ZH CEXO's BLOG</a>, 2010. |
<a href="http://www.zhcexo.com/wordpress-child-themes/">查看原文</a> |
<a href="http://www.zhcexo.com/wordpress-child-themes/#comments">13 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/php/" rel="tag">PHP</a>, <a href="http://www.zhcexo.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/wordpress-child-themes/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>圣诞快乐和不是总结的总结</title>
		<link>http://www.zhcexo.com/2009-xmas-and-year-end-report/</link>
		<comments>http://www.zhcexo.com/2009-xmas-and-year-end-report/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 06:14:48 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[生活记事]]></category>
		<category><![CDATA[节日]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=889</guid>
		<description><![CDATA[今年的圣诞节，武汉的天气还不错，适宜出去玩玩。今晚就是平安夜，大家有些什么安排呢？圣诞一至，新年就不远了，一年就这样过去了。回首2009，自己已经身在大学的最后一年，大学生活快要和自己告别了。多的不想说，就下面这张简单的图总结一下吧~





<span class="readmore"><a href="http://www.zhcexo.com/2009-xmas-and-year-end-report/" title="圣诞快乐和不是总结的总结">阅读全文——共130字</a></span>]]></description>
			<content:encoded><![CDATA[<p>今年的圣诞节，武汉的天气还不错，适宜出去玩玩。今晚就是平安夜，大家有些什么安排呢？圣诞一至，新年就不远了，一年就这样过去了。回首2009，自己已经身在大学的最后一年，大学生活快要和自己告别了。多的不想说，就下面这张简单的图总结一下吧~</p>
<p><span id="more-889"></span></p>
<p><img src="http://www.zhcexo.com/images/works/2009.png" alt="圣诞快乐和不是总结的总结"  title="圣诞快乐和不是总结的总结" /></p>
<p>祝大家圣诞快乐，新年快乐！</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/merry-xmas-and-tweets/" title="圣诞节快乐和一些杂事">圣诞节快乐和一些杂事</a></li><li><a href="http://www.zhcexo.com/halloween-day-web-sources/" title="万圣节的礼物，献给读者">万圣节的礼物，献给读者</a></li><li><a href="http://www.zhcexo.com/be-a-new-man/" title="从明天起，做一个XX的人">从明天起，做一个XX的人</a></li><li><a href="http://www.zhcexo.com/beta-to-alpha/" title="从Beta到Alpha">从Beta到Alpha</a></li><li><a href="http://www.zhcexo.com/received-present-for-2011-from-rj/" title="收到了RJ童鞋精心制作的2011年台历">收到了RJ童鞋精心制作的2011年台历</a></li><li><a href="http://www.zhcexo.com/recent-changes-of-the-blog/" title="近期博客上一点点整改">近期博客上一点点整改</a></li><li><a href="http://www.zhcexo.com/new-private-theme-vitality/" title="先上新主题，再慢慢完善">先上新主题，再慢慢完善</a></li><li><a href="http://www.zhcexo.com/wordpress-child-themes/" title="WordPress子主题（翻译）">WordPress子主题（翻译）</a></li><li><a href="http://www.zhcexo.com/2-years-100-posts-graduation/" title="2、100、O">2、100、O</a></li><li><a href="http://www.zhcexo.com/trouble-and-music/" title="乱写一通[With Music]">乱写一通[With Music]</a></li></ul><hr />
<p>© ZH CEXO for <a href="http://www.zhcexo.com">ZH CEXO's BLOG</a>, 2009. |
<a href="http://www.zhcexo.com/2009-xmas-and-year-end-report/">查看原文</a> |
<a href="http://www.zhcexo.com/2009-xmas-and-year-end-report/#comments">31 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a>, <a href="http://www.zhcexo.com/tag/life-log/" rel="tag">生活记事</a>, <a href="http://www.zhcexo.com/tag/festival/" rel="tag">节日</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/2009-xmas-and-year-end-report/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>主题设计图Spring，谁要？</title>
		<link>http://www.zhcexo.com/new-theme-spring-preview/</link>
		<comments>http://www.zhcexo.com/new-theme-spring-preview/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 08:05:56 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[设计作品]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=881</guid>
		<description><![CDATA[在寝室里闲着无事，就画了一张主题的设计图Spring。说来起因挺好笑的，由于前段时间武汉很冷，还下雪了，所以大家都认为冬天提前到了，但不想雪后放晴到现在，每天的温度一直在升高，所以寝室的同学开玩笑说&#8220;春天来了&#8221;。哈！是啊，提到春天，多美的景色啊，特别是经过了一冬的枯树上绽开的一点点新绿&#8230;&#8230;于是我就想着那些新绿和泥土的气息，开着还不是很熟悉的Photoshop兀自画了起来~

预览图在这：



<span class="readmore"><a href="http://www.zhcexo.com/new-theme-spring-preview/" title="主题设计图Spring，谁要？">阅读全文——共614字</a></span>]]></description>
			<content:encoded><![CDATA[<p>在寝室里闲着无事，就画了一张主题的设计图Spring。说来起因挺好笑的，由于<a target="_blank" href="http://www.zhcexo.com/win7-hacks-for-starters/" title="换上了Windows 7，华丽丽地飘过">前段时间武汉很冷，还下雪了</a>，所以大家都认为冬天提前到了，但不想雪后放晴到现在，每天的温度一直在升高，所以寝室的同学开玩笑说&ldquo;春天来了&rdquo;。哈！是啊，提到春天，多美的景色啊，特别是经过了一冬的枯树上绽开的一点点新绿&hellip;&hellip;于是我就想着那些新绿和泥土的气息，开着还不是很熟悉的<a target="_blank" href="http://www.zhcexo.com/tag/photoshop" title="tag: photoshop">Photoshop</a>兀自画了起来~</p>
<p>预览图在这：</p>
<p><span id="more-881"></span></p>
<p><img width="610" src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_ruj4XAh2Njs%2FSwzhmAVubXI%2FAAAAAAAACxw%2FZTLEOVt-YhE%2Fs800%2Fspring.png" alt="主题设计图Spring，谁要？"  title="主题设计图Spring，谁要？" /></p>
<p>和我那半瓢水的代码能力相比，自己的设计能力弱很多，对色彩的感觉方面都很差劲，所以一直以来，我做的主题都是用的别人的配色，很少自己来想。再者，我老是自信不足，怕做出来的东西见不了人，结果页面布局方面也老是参考参考再综合。但后来<a target="_blank" href="http://www.happinesz.cn" title="幸福收藏夹">sofish</a>他们告诉我，做主题这种东西，要形成自己的风格，比如<a target="_blank" href="http://www.neoease.com" title="NeoEase">mg12</a>和sofish的作品，一看就知道是他们做的。但如果老是用一种固定的思维和模式来做东西，那样也太呆板了，所以得&ldquo;改版&rdquo;~</p>
<p>这是我第一个真正意义上自己的作品，对着电脑一心画成的，没有参考别人的结构和配色。结构的话，感觉博客的结构都差不多，而颜色，是来自于头部的那棵大树。大家感觉如何呢？</p>
<p>所以这么春天这么环保的主题，谁想要？<strong>我CODE，FOR FREE！</strong>当然以我的代码能力，这个主题可能会很折腾，不是很容易弄好&hellip;&hellip;</p>
<p><a target="_blank" href="http://www.zhcexo.com/images/works/spring.png" title="Spring设计图原图">查看大图请点击这里（推荐用鼠标右键打开）</a></p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/new-private-theme-vitality/" title="先上新主题，再慢慢完善">先上新主题，再慢慢完善</a></li><li><a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/" title="换掉旧主题，正式启用Dark Spring">换掉旧主题，正式启用Dark Spring</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/" title="完成新主题Dark Spring的主页部分">完成新主题Dark Spring的主页部分</a></li><li><a href="http://www.zhcexo.com/wordpress-child-themes/" title="WordPress子主题（翻译）">WordPress子主题（翻译）</a></li><li><a href="http://www.zhcexo.com/theme-easyline-released/" title="发布新主题EasyLine">发布新主题EasyLine</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-brighter-day-released/" title="发布新主题Brighter Day">发布新主题Brighter Day</a></li><li><a href="http://www.zhcexo.com/brighter-day-preview/" title="Brighter Day Preview">Brighter Day Preview</a></li><li><a href="http://www.zhcexo.com/maybe-the-last-theme-for-linxo/" title="可能是最后一个主题Linxo V1">可能是最后一个主题Linxo V1</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-red-and-black-released/" title="发布新主题－－红与黑">发布新主题－－红与黑</a></li><li><a href="http://www.zhcexo.com/new-theme-simple-blue-for-linxo/" title="换上新主题：Simple Blue">换上新主题：Simple Blue</a></li></ul><hr />
<p>© ZH CEXO for <a href="http://www.zhcexo.com">ZH CEXO's BLOG</a>, 2009. |
<a href="http://www.zhcexo.com/new-theme-spring-preview/">查看原文</a> |
<a href="http://www.zhcexo.com/new-theme-spring-preview/#comments">47 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/design/" rel="tag">design</a>, <a href="http://www.zhcexo.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/new-theme-spring-preview/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>换掉旧主题，正式启用Dark Spring</title>
		<link>http://www.zhcexo.com/new-wordpress-theme-dark-spring/</link>
		<comments>http://www.zhcexo.com/new-wordpress-theme-dark-spring/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 05:44:22 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[学习经历]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=792</guid>
		<description><![CDATA[就这样，慢慢地打磨我的新主题，很做了一段时间，因为自己的水平有限，再者想尽力把它做好。上次的小图大家没有看清楚吧，这次总体的效果又如何呢？

LinxoV1这个主题是我一年以前做的，当时刚学习CSS不久，就着新鲜劲就做了出来。以前我做主题都没用什么框架来着，XHTML都自己来写，然后关于代码的SEO我也完全不懂，反正最后觉得不错就行了。但是真正做的时候就免不了这里加个div，那里删个什么标签的，很费事，效果也不是很好。这次的主题我使用sandbox主题框架，只进行了小小的修改。不用Hybrid框架的原因是，一来资料很少，二来非得安装Hybrid原主题才能正常工作。而我使用sandbox，就可以作为一个单独的主题拿出来了。

<span class="readmore"><a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/" title="换掉旧主题，正式启用Dark Spring">阅读全文——共922字</a></span>]]></description>
			<content:encoded><![CDATA[<p>就这样，慢慢地打磨我的新主题，很做了一段时间，因为自己的水平有限，再者想尽力把它做好。<a target="_blank" href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/" title="完成新主题Dark Spring的主页部分">上次的小图</a>大家没有看清楚吧，这次总体的效果又如何呢？</p>
<p><a target="_blank" href="http://www.zhcexo.com/maybe-the-last-theme-for-linxo/" title="可能是最后一个主题Linxo V1">LinxoV1</a>这个主题是我一年以前做的，当时刚学习CSS不久，就着新鲜劲就做了出来。以前我做主题都没用什么框架来着，XHTML都自己来写，然后关于代码的SEO我也完全不懂，反正最后觉得不错就行了。但是真正做的时候就免不了这里加个div，那里删个什么标签的，很费事，效果也不是很好。这次的主题我使用<a target="_blank" href="http://www.plaintxt.org/themes/sandbox/" title="sandbox主题框架">sandbox主题框架</a>，只进行了小小的修改。不用<a target="_blank" href="http://themehybrid.com/" title="Theme Hybrid">Hybrid框架</a>的原因是，一来资料很少，二来非得安装Hybrid原主题才能正常工作。而我使用sandbox，就可以作为一个单独的主题拿出来了。</p>
<p><span id="more-792"></span></p>
<p>很有一段时间没有碰CSS了，发现很多代码都忘记了，幸好Dreamweaver有代码提示，为我省掉不少事情。但我做主题还是解决不了IE下面的显示问题，唉&hellip;&hellip;这次又找<a target="_blank" href="http://www.happinesz.cn/" title="幸福收藏夹">sofish</a>童鞋帮我处理了导航条在IE7下面的显示问题，并且提供了文章自动截断的方法。但这个主题头部在IE8和Opera下，背景图片还是有1px的偏移，我修改不了，拉倒算了&hellip;&hellip;还有，为了早日淘汰IE6，我也作一份贡献吧，加上了<a target="_blank" href="http://www.ie6nomore.com/" title="IE6 no more"><strike>IE6 no more</strike></a>的代码(换成了<a target="_blank" href="http://www.neoease.com/lets-kill-ie6/" title="Let's Kill IE6">mg12的Let&#8217;s Kill IE6</a>了)，只是个提示作用，关掉提示网页依然可以用，当然效果比高级浏览器差多了。</p>
<p>本来我做这个主题有一个目的就是减少插件的使用数目，比如显示评论最多的文章和随机文章等等，但是评论最多的文章好解决，而随机文章的代码一放到主题里面，评论和文章就不配套了，这个问题很苦恼了我一阵，后来去掉了一切正常，看来<a target="_blank" href="http://www.webdesignerwall.com/tutorials/20-wordpress-recipes-codes/" title="20+ WordPress Recipes (Codes)">WebDesignerWall</a>里面提供的代码也不是完全好用啊。关于评论部分，我想了半天不知道怎么来设计，后来就来个简洁的算了吧，也节省点代码。至于Ajax评论功能和网页动态效果什么的，本来也想加上去的，算了，毕竟那不是我的设计，而且可要可无，博客的质量在于文章嘛（说这句话我怎么觉得在打自己的脸&hellip;&hellip;囧&hellip;&hellip;）~~</p>
<p>现在写文章真难产，而且我的事情又来了，这可如何是好？？</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/new-private-theme-vitality/" title="先上新主题，再慢慢完善">先上新主题，再慢慢完善</a></li><li><a href="http://www.zhcexo.com/new-theme-spring-preview/" title="主题设计图Spring，谁要？">主题设计图Spring，谁要？</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/" title="完成新主题Dark Spring的主页部分">完成新主题Dark Spring的主页部分</a></li><li><a href="http://www.zhcexo.com/wordpress-child-themes/" title="WordPress子主题（翻译）">WordPress子主题（翻译）</a></li><li><a href="http://www.zhcexo.com/theme-easyline-released/" title="发布新主题EasyLine">发布新主题EasyLine</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-brighter-day-released/" title="发布新主题Brighter Day">发布新主题Brighter Day</a></li><li><a href="http://www.zhcexo.com/brighter-day-preview/" title="Brighter Day Preview">Brighter Day Preview</a></li><li><a href="http://www.zhcexo.com/maybe-the-last-theme-for-linxo/" title="可能是最后一个主题Linxo V1">可能是最后一个主题Linxo V1</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-red-and-black-released/" title="发布新主题－－红与黑">发布新主题－－红与黑</a></li><li><a href="http://www.zhcexo.com/new-theme-simple-blue-for-linxo/" title="换上新主题：Simple Blue">换上新主题：Simple Blue</a></li></ul><hr />
<p>© ZH CEXO for <a href="http://www.zhcexo.com">ZH CEXO's BLOG</a>, 2009. |
<a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/">查看原文</a> |
<a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/#comments">76 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/design/" rel="tag">design</a>, <a href="http://www.zhcexo.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/new-wordpress-theme-dark-spring/feed/</wfw:commentRss>
		<slash:comments>76</slash:comments>
		</item>
		<item>
		<title>完成新主题Dark Spring的主页部分</title>
		<link>http://www.zhcexo.com/wordpress-theme-dark-spring-preview/</link>
		<comments>http://www.zhcexo.com/wordpress-theme-dark-spring-preview/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 04:21:48 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[学习经历]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=777</guid>
		<description><![CDATA[我的博客开了一年多了，以前挺勤快，现在很懒了，懒得连主题都不想换了&#8230;&#8230;这个LinxoV1主题也就这样跟着用了快一年的时间。趁着放假我的兼职做完了，还剩下几天的时间就要去学校，我就合计着想做一个新主题。话说以前做主题的时候我几乎直接code，心中没什么设计图，想到哪做到哪，结果做出来的东西要一次又一次不停地修改。但这次，我先做出了我博客新主题的psd设计图，再来code，希望能做得好一点。



因为我这个人没有艺术功底，也没有创新能力，所以我的主题设计是参考了很多主题后综合而来的。然后拿着设计图，我在想用什么当作主题框架。要说我真想用的框架是Hybrid，但是和它相关的资料太难找到了，而且有的要收费，并且做出来后，我的子主题对它的父主题依赖挺大的。最后我还是选择了sandbox，需要些什么功能就Google一下，然后再加进去吧。

<span class="readmore"><a href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/" title="完成新主题Dark Spring的主页部分">阅读全文——共615字</a></span>]]></description>
			<content:encoded><![CDATA[<p>我的博客开了一年多了，以前挺勤快，现在很懒了，懒得连主题都不想换了&hellip;&hellip;这个<a target="_blank" href="http://www.zhcexo.com/maybe-the-last-theme-for-linxo/" title="可能是最后一个主题Linxo V1">LinxoV1主题</a>也就这样跟着用了快一年的时间。趁着放假我的兼职做完了，还剩下几天的时间就要去学校，我就合计着想做一个新主题。话说以前做主题的时候我几乎直接code，心中没什么设计图，想到哪做到哪，结果做出来的东西要一次又一次不停地修改。但这次，我先做出了我博客新主题的psd设计图，再来code，希望能做得好一点。</p>
<p><span id="more-777"></span></p>
<p>因为我这个人没有艺术功底，也没有创新能力，所以我的主题设计是参考了很多主题后综合而来的。然后拿着设计图，我在想用什么当作主题框架。要说我真想用的框架是Hybrid，但是和它相关的资料太难找到了，而且有的要收费，并且做出来后，我的子主题对它的父主题依赖挺大的。最后我还是选择了sandbox，需要些什么功能就Google一下，然后再加进去吧。</p>
<p>下面的预览图不是我的PS图，而是已经完成的<strong>主页部分</strong>code在<strong>Firefox3.5下的真实效果</strong>。具体这个主题会做成什么样子，以后大家再看吧。就目前来说，进度可能才20%，因为内容页等其他的页面不是很好做。而且我现在开始就不再继续做了，开学有考试，再不看书就玩完，我可不想把报名费扔掉。所以目前，我就继续用LinxoV1主题吧。</p>
<p>下面是预览图：</p>
<p><img src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_ruj4XAh2Njs%2FTHUlQUnKZ-I%2FAAAAAAAAC9c%2Feq__vs4khaY%2Fs800%2Fdarkspring.jpg" alt="完成新主题Dark Spring的主页部分" title="Dark Spring" /></p>
<p>有什么意见和建议可以提，因为主题未完成，比较容易修改。在IE下简单地看了几眼，我有跳楼的冲动&hellip;&hellip; <img src='http://www.zhcexo.com/wp-includes/images/smilies/icon_cry.gif' alt="完成新主题Dark Spring的主页部分" class='wp-smiley' title="完成新主题Dark Spring的主页部分" /> </p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/new-private-theme-vitality/" title="先上新主题，再慢慢完善">先上新主题，再慢慢完善</a></li><li><a href="http://www.zhcexo.com/new-theme-spring-preview/" title="主题设计图Spring，谁要？">主题设计图Spring，谁要？</a></li><li><a href="http://www.zhcexo.com/new-wordpress-theme-dark-spring/" title="换掉旧主题，正式启用Dark Spring">换掉旧主题，正式启用Dark Spring</a></li><li><a href="http://www.zhcexo.com/wordpress-child-themes/" title="WordPress子主题（翻译）">WordPress子主题（翻译）</a></li><li><a href="http://www.zhcexo.com/theme-easyline-released/" title="发布新主题EasyLine">发布新主题EasyLine</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-brighter-day-released/" title="发布新主题Brighter Day">发布新主题Brighter Day</a></li><li><a href="http://www.zhcexo.com/brighter-day-preview/" title="Brighter Day Preview">Brighter Day Preview</a></li><li><a href="http://www.zhcexo.com/maybe-the-last-theme-for-linxo/" title="可能是最后一个主题Linxo V1">可能是最后一个主题Linxo V1</a></li><li><a href="http://www.zhcexo.com/wordpress-theme-red-and-black-released/" title="发布新主题－－红与黑">发布新主题－－红与黑</a></li><li><a href="http://www.zhcexo.com/new-theme-simple-blue-for-linxo/" title="换上新主题：Simple Blue">换上新主题：Simple Blue</a></li></ul><hr />
<p>© ZH CEXO for <a href="http://www.zhcexo.com">ZH CEXO's BLOG</a>, 2009. |
<a href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/">查看原文</a> |
<a href="http://www.zhcexo.com/wordpress-theme-dark-spring-preview/#comments">24 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/design/" rel="tag">design</a>, <a href="http://www.zhcexo.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/wordpress-theme-dark-spring-preview/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

