<?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; wordpress</title>
	<atom:link href="http://www.zhcexo.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhcexo.com</link>
	<description>探寻网络 分享发现</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:01:20 +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>鼠标悬浮显示@reply的评论</title>
		<link>http://www.zhcexo.com/hover-to-show-comment/</link>
		<comments>http://www.zhcexo.com/hover-to-show-comment/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 06:58:11 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://www.zhcexo.com/?p=1016</guid>
		<description><![CDATA[呃，或许标题起成这样根本不准确，但我也不知道该怎么命名这个标题，所以将就着吧。

一直使用@reply的方式来进行评论，什么是@reply呢？就是从以前的主题到现在，在每条评论的右边都会有Reply按钮，点击一下，评论框里面就会显示&#8220;@user:&#8221;然后写下你的留言，这样就很容易知道你在回复谁的评论了，而且因为我使用了Mail to commenter这个插件，被回复者会收到邮件提醒，至于@reply这个名字，可能是从Twitter上延用过来的吧。有人说，用嵌套的话，谁回复谁不是很容易看出来么，话是这么说没错，但嵌套的样式不好控制，也不知道套多少层合适，另外，如果上层的嵌套太多了，可能会影响别人看后面评论的心情吧，当然如果你不怕折腾，试试木木同学的无限嵌套。打住，我这篇文章要说什么问题呢？先上个图吧：

<span class="readmore"><a href="http://www.zhcexo.com/hover-to-show-comment/" title="鼠标悬浮显示@reply的评论">阅读全文——共1980字</a></span>]]></description>
			<content:encoded><![CDATA[<p>呃，或许标题起成这样根本不准确，但我也不知道该怎么命名这个标题，所以将就着吧。</p>
<p>一直使用@reply的方式来进行评论，什么是@reply呢？就是从以前的主题到现在，在每条评论的右边都会有Reply按钮，点击一下，评论框里面就会显示&ldquo;@user:&rdquo;然后写下你的留言，这样就很容易知道你在回复谁的评论了，而且因为我使用了Mail to commenter这个插件，被回复者会收到邮件提醒，至于@reply这个名字，可能是从Twitter上延用过来的吧。有人说，用嵌套的话，谁回复谁不是很容易看出来么，话是这么说没错，但嵌套的样式不好控制，也不知道套多少层合适，另外，如果上层的嵌套太多了，可能会影响别人看后面评论的心情吧，当然如果你不怕折腾，试试<a target="_blank" href="http://immmmm.com/wordpress-unlimited-nested-comments.html" title="WordPress无限嵌套评论的那些事儿">木木同学的无限嵌套</a>。打住，我这篇文章要说什么问题呢？先上个图吧：</p>
<p><span id="more-1016"></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%2FTF-gWnbm8AI%2FAAAAAAAAC8I%2FbwpjrKDl-kY%2Fs800%2Freply-1.png" alt="鼠标悬浮显示@reply的评论"  title="鼠标悬浮显示@reply的评论" /></p>
<p>这样总该明白了吧。本来留言的时候点击Reply按钮后会自动生成被回复评论的锚记，可以点击这个锚记跳转到被回复的评论那里，但体验总有点不好。而鼠标悬浮于锚记上自动出现被回复的评论，最初是出现在<a target="_blank" href="http://ishawn.net/" title="Shawn Blog">shawn大师</a>的博客上，后来<a target="_blank" href="http://philna.com/" title="PhilNa - 找寻那些幸福...">Yinheli同学</a>也按自己的方法钻研出来了。不过yinheli同学的代码感觉和他自己的主题结合着，不太适合我，改了半天老出不来效果，所以我就试着自己用jQuery折腾一下看看。</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%2FTF-gW66NaAI%2FAAAAAAAAC8M%2FlhviRSsqYQA%2Fs800%2Freply-2.png" alt="鼠标悬浮显示@reply的评论"  title="鼠标悬浮显示@reply的评论" /></p>
<p>先打开Firebug分析一下DOM，我们就以图中的这个回复评论为例。因为我的评论没有分页，所以回复的评论都在本页里面，并且@user这个链接里面的href值是以&ldquo;#comment-&rdquo;开头的，另外要注意的是，每个评论的li都拥有一个id，这个id的值也就是href里面的值，比如上图中的href和id都是comment-2742。好了，我们现在要做的就是把href里面的链接取出来，然后取相同值的id的li，并且把这个li元素克隆一下，追加到DOM里面，再配合CSS的absolute定位，让你的评论能显示在鼠标的旁边。</p>
<p>下面上代码，注释我都写在后面，希望大家都理解。</p>
<h3>jQuery代码：</h3>
<pre class="brush: js">
//hover show comments
	$(&quot;.commentlist li p a&quot;).mouseover(function(e){		//鼠标悬浮在评论中有a标签的地方时
		var A=/^#comment-/;		/*正则表达式，用来筛选以#comment-的元素*/
		if ($(&quot;.commentlist li p a&quot;).attr(&quot;href&quot;).match(A)) 	//如果a里面的href里面的值与正则表达式里的相匹配，那么执行花括号里面的代码块
		{
			var t_link = $(this).attr(&quot;href&quot;);		//定义t_link来存储href里面的值
			var h_com = &quot;&lt;li class='hover-comment'&gt;&quot; + $(t_link).html() + &quot;&lt;/li&gt;&quot;;		//定义h_com，在里面赋上html代码
		} else h_com = &quot;&quot;;
		$(&quot;body&quot;).append(h_com);	//将h_com里面的值追加到body里面
		$(&quot;.hover-comment&quot;).css({
			&quot;top&quot;:(e.pageY+10) + &quot;px&quot;,
			&quot;left&quot;:(e.pageX+10) + &quot;px&quot;
		}).fadeIn(&quot;slow&quot;);		//让评论在鼠标悬浮于@user链接里面出现
	}).mouseout(function(){
		$(&quot;.hover-comment&quot;).fadeOut(&quot;slow&quot;,function(){$(this).remove()});		//鼠标移出链接时，将添加到body里面的h_com删掉
	}).mousemove(function(e){		//鼠标在@user上移动的时候，让显示出来的评论框也跟着移动
			$(&quot;#linktip&quot;).remove();
			$(&quot;.hover-comment&quot;).css({
			&quot;top&quot;:(e.pageY+10) + &quot;px&quot;,
			&quot;left&quot;:(e.pageX+10) + &quot;px&quot;
		});
	});
</pre>
<h3>CSS代码：</h3>
<pre class="brush: css">
.hover-comment{
	position:absolute;		/*绝对定位，让悬浮的评论脱离文档流，方便出现在鼠标旁边*/
	width:580px;
	border:1px solid #7DA028;
	list-style:none;
	display:none;		/*添加到body中后，让它不显示，然后在js里以fadeIn的方式显示*/
	background:#FFF;
}</pre>
<p>不知道大家能不能理解呢？另外有一个问题就是，我以前换主机的时候，数据库处理上出了问题，所以有的评论对不上，这样的话鼠标悬浮的时候就会出现null，怎么解决呢？希望知道的朋友提供个方法，谢谢！</p>
<h3>参考阅读：</h3>
<p>1. <a href="http://philna.com/2008/12/mouseover-to-show-comment-no1/">鼠标悬浮实现显示留言内容(上)</a></p>
<p>2. <a href="http://philna.com/2008/12/mouseover-to-show-comment-no/">鼠标悬浮实现显示留言内容(下)</a></p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.zhcexo.com/simple-slide-menu-with-jquery/" title="用jQuery创建简单的滑动导航菜单">用jQuery创建简单的滑动导航菜单</a></li><li><a href="http://www.zhcexo.com/creating-a-keyboard-with-css-and-jquery/" title="利用CSS和jQuery创建一个屏幕键盘">利用CSS和jQuery创建一个屏幕键盘</a></li><li><a href="http://www.zhcexo.com/the-youloveus-scrolling-background-effect-explained/" title="youlove.us上的背景滚动效果是怎样实现的（翻译）">youlove.us上的背景滚动效果是怎样实现的（翻译）</a></li><li><a href="http://www.zhcexo.com/how-to-create-a-sliding-imagereveal-content-with-jquery/" title="使用jQuery创建滑动图片/显示内容的效果（翻译）">使用jQuery创建滑动图片/显示内容的效果（翻译）</a></li><li><a href="http://www.zhcexo.com/pretty-checkboxes-with-jquery/" title="使用jQuery制作精致的复选框（翻译）">使用jQuery制作精致的复选框（翻译）</a></li><li><a href="http://www.zhcexo.com/css-input-file-area/" title="使用CSS美化文件上传表单">使用CSS美化文件上传表单</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/css3-cool-tip/" title="用CSS3创建漂亮的链接提示">用CSS3创建漂亮的链接提示</a></li><li><a href="http://www.zhcexo.com/colortip-fixed-for-ie6/" title="修正一下jQuery插件Colortip在IE6下面的显示问题">修正一下jQuery插件Colortip在IE6下面的显示问题</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/hover-to-show-comment/">查看原文</a> |
<a href="http://www.zhcexo.com/hover-to-show-comment/#comments">16 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/jquery/" rel="tag">jQuery</a>, <a href="http://www.zhcexo.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://www.zhcexo.com/tag/tutorial/" rel="tag">教程</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/hover-to-show-comment/feed/</wfw:commentRss>
		<slash:comments>16</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>主题设计图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>
		<item>
		<title>发布新主题EasyLine</title>
		<link>http://www.zhcexo.com/theme-easyline-released/</link>
		<comments>http://www.zhcexo.com/theme-easyline-released/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 06:46:58 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[学习经历]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.linxo.cn/blog/?p=679</guid>
		<description><![CDATA[本来我是不做主题的，而且我说过LinxoV1可能是我最后一个主题，但是潘小胖子上次问过我学习CSS用什么书，后来又让我教他做主题，可是我也只是个半瓢水，只学了一个星期的CSS……然后他说要求不高，做成网易新闻的内容页面的效果就行了，然后我就仿照那个做了这个EasyLine主题，可是！可是！他不想要，让我改，改成现在这个样子了，所以这个原始的主题就废了……但我觉得直接删了多可惜呀，不如放出来吧~



这个主题很简单，简单得不能再简单，但是还是有图片……不过总的文件压缩成zip后只有37KB，所以也算一个轻量级主题吧，而且能合在一起的图片我已经处理成一张了，减少了http请求。因为是答应帮潘小胖子做的，所以我连logo都没改，所以如果有人想用，请自己把主题里面相关内容进行修改。

<span class="readmore"><a href="http://www.zhcexo.com/theme-easyline-released/" title="发布新主题EasyLine">阅读全文——共468字</a></span>]]></description>
			<content:encoded><![CDATA[<p>本来我是不做主题的，而且我说过<a href="http://www.zhcexo.com/maybe-the-last-theme-for-linxo/" target="_blank">LinxoV1可能是我最后一个主题</a>，但是<a href="http://www.ibluer.com/" target="_blank">潘小胖子</a>上次问过我学习CSS用什么书，后来又让我教他做主题，可是我也只是个半瓢水，只学了一个星期的CSS……然后他说要求不高，做成网易新闻的内容页面的效果就行了，然后我就仿照那个做了这个EasyLine主题，可是！可是！他不想要，让我改，<a href="http://www.ibluer.com/" target="_blank">改成现在这个样子了</a>，所以这个原始的主题就废了……但我觉得直接删了多可惜呀，不如放出来吧~</p>
<p><span id="more-679"></span></p>
<p>这个主题很简单，简单得不能再简单，但是还是有图片……不过总的文件压缩成zip后只有37KB，所以也算一个轻量级主题吧，而且能合在一起的图片我已经处理成一张了，减少了http请求。因为是答应帮潘小胖子做的，所以我连logo都没改，所以如果有人想用，请自己把主题里面相关内容进行修改。</p>
<p>再上个图吧：</p>
<p><a href="http://www.zhcexo.com"><img src="http://www.zhcexo.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_ruj4XAh2Njs%2FSXwIcqHt17I%2FAAAAAAAAB3M%2FHYHIO91mJgU%2Fs800%2Feasyline.jpg" alt="发布新主题EasyLine"  title="发布新主题EasyLine" /></a></p>
<p>主题需要插件：<a href="http://yan.me/dia/wordpress/kit/" target="_blank">中文Wordpress工具箱</a></p>
<p>目前此主题在本机的IE6，IE7，Firefox3.0，Opera9，Chrome2下面测试样式基本一致，如有问题可留言提出。</p>
<p><a href="http://www.zhcexo.com/download/easyline.zip" target="_blank">下载</a> | <a href="http://www.zhcexo.com/?theme=easyline" target="_blank">主页</a> | <a href="http://www.zhcexo.com/theme-easyline-released/?theme=easyline" target="_blank">内容页</a></p>
<p>有没有人用还是个问题……再囧一下……</p>
<h1><span style="color: #ff0000;">今天除夕，祝大家新年快乐！</span></h1>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><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/wordpress-theme-red-and-black-released/" 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/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/upgrade-to-wordpress27/" title="升级到Wordpress2.7">升级到Wordpress2.7</a></li><li><a href="http://www.zhcexo.com/halloween-day-web-sources/" title="万圣节的礼物，献给读者">万圣节的礼物，献给读者</a></li><li><a href="http://www.zhcexo.com/brighter-day-preview/" title="Brighter Day Preview">Brighter Day Preview</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/theme-easyline-released/">查看原文</a> |
<a href="http://www.zhcexo.com/theme-easyline-released/#comments">28 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://www.zhcexo.com/tag/download/" rel="tag">下载</a>, <a href="http://www.zhcexo.com/tag/theme/" rel="tag">主题</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/theme-easyline-released/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>升级到WordPress2.7</title>
		<link>http://www.zhcexo.com/upgrade-to-wordpress27/</link>
		<comments>http://www.zhcexo.com/upgrade-to-wordpress27/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 07:24:36 +0000</pubDate>
		<dc:creator>ZH CEXO</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://www.linxo.cn/blog/?p=612</guid>
		<description><![CDATA[本来这种比较轰动的消息会有无数个博主来写的，这次我也来凑个热闹，写一篇，毕竟Wordpress2.7版是一个改变比较大的版本，从开博客接触这个东西以来，我们也有一点使用心得，现在也向大家交待一下升级时候遇到的问题，希望对你们有帮助~

以前从2.5版升级到2.6的时候出现了一点问题的，后来网站因此停止访问整整一天，现在想想也觉得烦，所以每次升级都有点提心吊胆的，然后找到了一款自动升级的工具叫Wordpress Automatic Upgrade这个插件，升级就成了易事，但是这个2.7版不能用那个插件来升级，会出现一个空白页面。

<span class="readmore"><a href="http://www.zhcexo.com/upgrade-to-wordpress27/" title="升级到WordPress2.7">阅读全文——共916字</a></span>]]></description>
			<content:encoded><![CDATA[<p>本来这种比较轰动的消息会有无数个博主来写的，这次我也来凑个热闹，写一篇，毕竟Wordpress2.7版是一个改变比较大的版本，从开博客接触这个东西以来，我们也有一点使用心得，现在也向大家交待一下升级时候遇到的问题，希望对你们有帮助~</p>
<p>以前从2.5版升级到2.6的时候出现了一点问题的，后来网站因此停止访问整整一天，现在想想也觉得烦，所以每次升级都有点提心吊胆的，然后找到了一款自动升级的工具叫Wordpress Automatic Upgrade这个插件，升级就成了易事，但是这个2.7版不能用那个插件来升级，会出现一个空白页面。</p>
<p><span id="more-612"></span></p>
<p>2.7的后台相对于以前的版本来说相当简练，可操作性强，让用户定位各种功能十分便捷，在2.7以前的版本里为了达到同样的效果使用的是Ozh&#8217; Admin Drop Down Menu这个插件，但是在2.7版里这个插件请千万禁用，不然会发生左边的侧栏丢失的情况，如果你在升级前没有禁用所有的插件，并且也使用了这个插件，已经造成了侧栏丢失的情况，请进入这个地址<a href="http://yoururl/wp-admin/plugins.php">http://yoururl/wp-admin/plugins.php</a>，然后再禁用Ozh&#8217; Admin Drop Down Menu。</p>
<p>再就是Simple Tags这个插件的问题了，你升级了之后，如果Simple Tags这个插件处于启用状态，那么后台的顶部区域会出现提示说Simple Tags这个插件不能用于2.7，请用Simple Tagging来代替。虽然Simple Tagging和Simple Tags是同一个制作组开发的，但是前者并不支持中文的标签显示，而且目前没找到中文版，使用多有不便，所以就有好心的网友开发了可用于2.7版的Simple Tags，基于原版制作，大家可以放心使用。</p>
<p>最后说一下的就是2.7的Google Gears支持放到了“工具-工具”那个项目里面了。</p>
<p><strong>就说这么多了，总结一下</strong></p>
<p><strong>1.</strong> 如果存在Ozh&#8217; Admin Drop Down Menu这个插件，请禁用</p>
<p><strong>2.</strong> WordPress Automatic Upgrade这个插件不能用了，也没必要再用了</p>
<p><strong>3.</strong> <img src="http://www.zhcexo.com/images/down.png" alt="升级到Wordpress2.7"  title="升级到Wordpress2.7" /><a href="http://www.brsbox.com/filebox/down/fc/62f4336a0513d581de2d4592ec0836df" target="_blank">Simple Tags for WordPress 2.7下载</a></p>
<p>PS：怎么感觉Windows Live Writer也不能用了 <img src='http://www.zhcexo.com/wp-includes/images/smilies/icon_question.gif' alt="升级到Wordpress2.7" class='wp-smiley' title="升级到Wordpress2.7" /> </p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><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/wordpress-theme-red-and-black-released/" 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/change-firefox-default-code-display-color-scheme/" title="更换Firefox默认查看源代码工具的配色方案">更换Firefox默认查看源代码工具的配色方案</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>, 2008. |
<a href="http://www.zhcexo.com/upgrade-to-wordpress27/">查看原文</a> |
<a href="http://www.zhcexo.com/upgrade-to-wordpress27/#comments">36 条评论</a>
<br/>
标签: <a href="http://www.zhcexo.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://www.zhcexo.com/tag/download/" rel="tag">下载</a>, <a href="http://www.zhcexo.com/tag/blog/" rel="tag">博客</a><br/>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.zhcexo.com/upgrade-to-wordpress27/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
	</channel>
</rss>

