<?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>我爱水煮鱼&#187; WordPress 主题</title>
	<atom:link href="http://fairyfish.net/tag/wordpress-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://fairyfish.net</link>
	<description>关注 WordPress，关注互联网</description>
	<lastBuildDate>Tue, 22 May 2012 15:17:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>SEO 技巧：通过赞助 WordPress 主题快速提高网站排名</title>
		<link>http://fairyfish.net/article/seo-tips-wp-theme-sponsor-links/</link>
		<comments>http://fairyfish.net/article/seo-tips-wp-theme-sponsor-links/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 15:15:45 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress 主题]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?p=1558</guid>
		<description><![CDATA[很多免费的 WordPress 主题是含有付费链接的，这些链接就是 WordPress 主题赞助商链接。赞助 WordPress 主题是一个非常有效地提升网站的搜索引擎排名的方法，因为赞助成功的主题会让你获得大量的反向链接，可以迅速提高你的网站的权重和排名。]]></description>
			<content:encoded><![CDATA[<p>现在网上有很多免费的 WordPress 主题下载，这些免费主题中的一大部分是含有付费链接的，并且 <code>footer.php</code> 是加密的，这些链接就是 <strong>WordPress 主题赞助商链接</strong>。通过赞助 WordPress 主题，快速增加网站反链，可以对网站进行搜索引擎优化（SEO），提高网站在搜索引擎中的排名。</p>
<h2>链接诱饵和 WordPress 主题赞助商链接</h2>
<p>我们知道获取链接的最好方法是<strong>链接诱饵</strong>，通过赞助 WordPress 主题就是链接诱饵的一种常用的方法。是的，赞助 WordPress 主题是一个非常有效地提升网站的搜索引擎排名的方法，因为赞助成功的主题会让你获得大量的反向链接，而这些反向链接往往都带有一定的 PR 值和权重，所以可以迅速提高你的网站的权重和排名。虽然我们不是很清楚 Google 是如何计算 PR 值的，但是我们几乎可以肯定，大量的带的 PR 值的反向链接会提升任何网站的排名的。</p>
<h2>赞助 WordPress 主题可以廉价获取大量高质量的反链</h2>
<p>WordPress 已经是一个非常通用的博客系统，独立博客是用 WordPress 架设博客所占的比率非常非常高了，据统计世界上有 8% 的网站是使用 WordPress 构建的，所以一个成功的 WordPress 主题，使用者是非常惊人的，比如 <a href="http://neoease.com/">mg12</a> 通过发布的主题，就给自己的博客带来了成千上万个长期反向链接，并且网站的 PR 值一度达到7。如果花钱买这些连接的话，需要多少钱呢？即使假设一个链接只要 10 元一个月的话，那也是一个天文数字了，而且只能是一个月。而制作这样一个成功的主题，需要花费的费用一般在5000元以下，所以通过赞助 WordPress 主题是可以通过小成本获取大量反向链接的好方法。</p>
<h2>赞助相关的 WordPress 主题。</h2>
<p>通过赞助 WordPress 主题获取链接应该注意的最大的问题是相关性，WordPress 主题应该和你企业的主题或者卖的东西很吻合，比如你是卖台球的，如果你发现有个台球的 WordPress 主题等待赞助或者直接找人帮你设计一个有个台球的 WordPress 主题，这样才是最佳的。因为使用这个 WordPress 主题的站点也会和台球有关系，这样链接的相关性提高很多，相应你获取的链接也会有更大的帮助。</p>
<h2>WordPress 主题赞助商链接的流程</h2>
<p>每个产业都是细分的，WordPress 主题赞助商链接这个产业也是的，有人专门设计和制作 WordPress 主题，然后有人到论坛上推广和卖卖链接，最后还有人把主题发布到20-60个主题和论坛站点，这样就保证了主题能够被更多的人看到，如果主题真的不错，那么就能得到广泛使用。</p>
<p>如果你对 WordPress 主题赞助商链接有什么看法？请给我留言！</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/article/seo-tips-wp-theme-sponsor-links/" title="SEO 技巧：通过赞助 WordPress 主题快速提高网站排名">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/article/seo-tips-wp-theme-sponsor-links/&title=SEO+%E6%8A%80%E5%B7%A7%EF%BC%9A%E9%80%9A%E8%BF%87%E8%B5%9E%E5%8A%A9+WordPress+%E4%B8%BB%E9%A2%98%E5%BF%AB%E9%80%9F%E6%8F%90%E9%AB%98%E7%BD%91%E7%AB%99%E6%8E%92%E5%90%8D&tags=SEO, WordPress 主题, "  title="SEO 技巧：通过赞助 WordPress 主题快速提高网站排名">收藏本文</a>
 / <a href="http://fairyfish.net/article/seo-tips-wp-theme-sponsor-links/#comments" title="SEO 技巧：通过赞助 WordPress 主题快速提高网站排名">17条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1184309641&amp;utmr=-&amp;utmp=%2Frss%2Farticle%2Fseo-tips-wp-theme-sponsor-links%2F&amp;utmdt=SEO+%E6%8A%80%E5%B7%A7%EF%BC%9A%E9%80%9A%E8%BF%87%E8%B5%9E%E5%8A%A9+WordPress+%E4%B8%BB%E9%A2%98%E5%BF%AB%E9%80%9F%E6%8F%90%E9%AB%98%E7%BD%91%E7%AB%99%E6%8E%92%E5%90%8D&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/article/seo-tips-wp-theme-sponsor-links/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>5个最佳房地产 WordPress 主题</title>
		<link>http://fairyfish.net/article/best-real-estate-wordpress-theme/</link>
		<comments>http://fairyfish.net/article/best-real-estate-wordpress-theme/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 18:46:15 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?p=2738</guid>
		<description><![CDATA[WordPress 并不是一个简单的博客程序，它能干的事情非常多。如果你是一个地产中介，想通过互联网出售房子，那么你也可以通过 WordPress 来实现，是的，选择一个适合房地产的 WordPress 主题，就会让你事半功倍，并且现在网络上有非常多的和房地产相关的 WordPress 主题，并且还集成了房地产相关的功能（如位置，价格，大小，几房几厅，经纪人，代理等。]]></description>
			<content:encoded><![CDATA[<p>WordPress 并不是一个简单的博客程序，它能干的事情非常多。如果你是一个地产中介，想通过互联网出售房子，那么你也可以通过 WordPress 来实现，是的，选择一个适合房地产的 WordPress 主题，就会让你事半功倍，并且现在网络上有非常多的和房地产相关的 WordPress 主题，并且还集成了房地产相关的功能（如位置，价格，大小，几房几厅，经纪人，代理等）。所以今天就给大家介绍下5个非常不错的房地产相关的 WordPress 主题。</p>
<p>本文翻译自 <a href="http://theme10.com/best-real-estate-wordpress-themes/" title="Permalink to 12 Real Estate WordPress Themes" rel="bookmark">12 Real Estate WordPress Themes</a>，原文有 12 个房地产相关的 WordPress 主题，这里节选其中最好的 6 个。</p>
<h2>1. Real Estate Theme <small>(from <a href="http://templatic.com/members/go.php?r=6153&amp;i=l0">templatic</a>)</small></h2>
<p><a href="http://templatic.com/members/go.php?r=6153&amp;i=l35">Real Estate Theme</a> 是有史以来最好的房地产相关的 WordPress 主题，它拥有让你创建房地产网站的所有功能，并且该主题设计非常典雅，结构和布局非常专业。</p>
<p class="entry_img"><a href="http://templatic.com/members/go.php?r=6153&amp;i=l35"><img src="http://theme10.com/wp-content/uploads/theme10/templatic-real-estate.png" alt="Real Estate Theme " /></a><br />
<a href="http://templatic.com/members/go.php?r=6153&amp;i=l35">Real Estate Theme 详细介绍</a></p>
<h2>2. Main Street Real Estate <small>(from <a href="https://www.e-junkie.com/ecom/gb.php?cl=48418&amp;c=ib&amp;aff=30098" >Gorilla Themes)</a></small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&#038;c=ib&#038;aff=30098&#038;cl=48418" >Main Street</a> 是一个房地产相关的主题，这个主题让你非常容易添加，修改，删除房产信息，并且它还提供 8 种颜色以及非常专业的布局。</p>
<p class="entry_img"><a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&#038;c=ib&#038;aff=30098&#038;cl=48418"><img src="http://theme10.com/wp-content/uploads/theme10/mainstreet.jpg" alt="Mainstreet Real Estate Theme " /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&#038;c=ib&#038;aff=30098&#038;cl=48418" >Main Street  详细介绍</a></p>
<h2>3. deCondo <small>(from <a href="https://www.e-junkie.com/ecom/gb.php?cl=66253&#038;c=ib&#038;aff=30098" >ThemeShift</a>)</a></small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=597286&#038;c=ib&#038;aff=30098&#038;cl=66253">deCondo</a> 是一个简洁典雅的 WordPress 房地产主题，搜索界面，多代理支持等许多功能让你非常容易建立你自己的房地产网站。</p>
<p class="entry_img"><a href="https://www.e-junkie.com/ecom/gb.php?ii=261509&#038;c=ib&#038;aff=30098&#038;cl=66253"><img src="http://theme10.com/wp-content/uploads/theme10/decasa.jpg" alt="deCasa" /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=597286&#038;c=ib&#038;aff=30098&#038;cl=66253">deCondo  详细介绍</a></p>
<h2>4. Elegant Real Estate</h2>
<p><a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua">Elegant Real Estate</a> 这个 WordPress 主题是专门为房地产网站而建的，它有房地产过滤功能，图片幻灯片，以及让你定制主题的后台管理选项。</p>
<p class="entry_img"><a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua"><img src="http://theme10.com/wp-content/uploads/theme10/elegant.jpg" alt="Broker Real Estate Theme " /></a><br />
<a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua">Elegant Real Estate  详细介绍</a></p>
<h2>5. Estate <small>(by <a href="http://www.woothemes.com/amember/go.php?r=1023&#038;i=l1">Woothemes</a>)</small></h2>
<p><a href="http://www.woothemes.com/amember/go.php?r=1023&#038;i=l80">Estate </a> 是一个非常强大的，但是管理非常方便的适合房地产中介 WordPress 主题，这个主题使用了 WordPress 3.0 开始的自定义日志类型和自定义分类模式这些高级功能，使得在 WordPress 后台能够有个真正的“房地产”的功能，并且灵活的页面模板高级搜索功能，以及集成了 Google 地图，灵活的房地产图片管理，你会发现这款主题是非常值得取用的。</p>
<p class="entry_img"><a href="http://www.woothemes.com/amember/go.php?r=1023&#038;i=l80"><img src="http://theme10.com/wp-content/uploads/theme10/woothemes-estate.jpg" alt="Woothemes Estate" /></a><br />
<a href="http://www.woothemes.com/amember/go.php?r=1023&#038;i=l80">Estate 详细介绍</a></p>
<p>当然这些主题都是英文版，中文情况下可能会有一些不适应的情况，如果你想制作一款针对中文市场的房地产 WordPress 主题，那么你也可以<a href="http://wpjam.com/contact">联系我们</a>。</p>
<p>本文翻译自 <a href="http://theme10.com/best-real-estate-wordpress-themes/" title="Permalink to 12 Real Estate WordPress Themes" rel="bookmark">12  Real Estate WordPress Themes</a>，原文有 15 个房地产相关的 WordPress 主题，这里节选其中最好的 5 个。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/article/best-real-estate-wordpress-theme/" title="5个最佳房地产 WordPress 主题">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/article/best-real-estate-wordpress-theme/&title=5%E4%B8%AA%E6%9C%80%E4%BD%B3%E6%88%BF%E5%9C%B0%E4%BA%A7+WordPress+%E4%B8%BB%E9%A2%98&tags=WordPress 主题, "  title="5个最佳房地产 WordPress 主题">收藏本文</a>
 / <a href="http://fairyfish.net/article/best-real-estate-wordpress-theme/#comments" title="5个最佳房地产 WordPress 主题">13条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><h3>相关日志</h3><ul class="related_post"><li><a href="http://fairyfish.net/2012/04/12/half-of-the-top-100-blogs-now-use-wordpress/" title="国外前 100 名博客半数使用 WordPress">国外前 100 名博客半数使用 WordPress</a></li>
<li><a href="http://fairyfish.net/article/wordpress-performance/" title="WordPress 性能优化：为什么我的博客比你的快 ">WordPress 性能优化：为什么我的博客比你的快 </a></li>
<li><a href="http://fairyfish.net/m/wordpress-action-hooks/" title="WordPress 常用 Action 接口">WordPress 常用 Action 接口</a></li>
<li><a href="http://fairyfish.net/article/wordpress-seo/" title="WordPress SEO 宝典">WordPress SEO 宝典</a></li>
<li><a href="http://fairyfish.net/article/install-wordpress-on-mac-os-x/" title="在 Mac OS X 系统上安装 WordPress 本地测试">在 Mac OS X 系统上安装 WordPress 本地测试</a></li>
<li><a href="http://fairyfish.net/2010/12/23/wpjam-vshop/" title="基于 WordPress 虚拟商品销售的商城系统">基于 WordPress 虚拟商品销售的商城系统</a></li>
</ul><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1611320420&amp;utmr=-&amp;utmp=%2Frss%2Farticle%2Fbest-real-estate-wordpress-theme%2F&amp;utmdt=5%E4%B8%AA%E6%9C%80%E4%BD%B3%E6%88%BF%E5%9C%B0%E4%BA%A7+WordPress+%E4%B8%BB%E9%A2%98&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/article/best-real-estate-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>5个最佳明星时尚八卦 WordPress 主题</title>
		<link>http://fairyfish.net/article/top-celebrity-gossip-wordpress-themes/</link>
		<comments>http://fairyfish.net/article/top-celebrity-gossip-wordpress-themes/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 18:43:47 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?p=2774</guid>
		<description><![CDATA[如果你喜欢娱乐圈的是是非非，并且想建立一个关于明星是非八卦的网站，WordPress 功能强大，易用性强等等原因使得使用 WordPress 来搭建是一个最佳的选择。但是在开始之前需要选择一个适合明星时尚和八卦休闲的 WordPress 主题，今天就给大家推荐几款这方面的 WordPress 主题。]]></description>
			<content:encoded><![CDATA[<p>如果你喜欢娱乐圈的是是非非，并且想建立一个关于明星是非八卦的网站，或者想为自己喜欢的明星创建博客，甚至是有些明星为自己创建博客，WordPress 功能强大，易用性强等等原因使得使用 WordPress 来搭建是一个最佳的选择。但是在开始之前需要选择一个适合明星时尚和八卦休闲的 WordPress 主题，今天就给大家推荐几款这方面的 WordPress 主题。</p>
<p>本文翻译自 <a href="http://theme10.com/top-celebrity-gossip-wordpress-themes/">Top 6 Celebrity Gossip WordPress Themes</a>，原文有 6 个适合明星时尚和八卦休闲的 WordPress 主题，这里节选其中最好的 5 个。</p>
<h2>1. CelebrityPress WordPress Theme <small>(by <a href="https://www.e-junkie.com/ecom/gb.php?cl=48418&amp;c=ib&amp;aff=30098" >Gorilla Themes)</a></small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=210444&#038;c=ib&#038;aff=30098&#038;cl=48418">CelebrityPress</a> 这个杂志型的主题非常适合那些想创建和姓名，八卦，音乐，电影等相关的网站，这个主题功能完整，有视频播放器，高效的主题后台设置和管理以及广告管理等。</p>
<p class="entry_img"><a href="https://www.e-junkie.com/ecom/gb.php?ii=210444&#038;c=ib&#038;aff=30098&#038;cl=48418"><img src="http://theme10.com/wp-content/uploads/theme10/celebritypress.jpg" alt="CelebrityPress WordPress Theme" /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=210444&#038;c=ib&#038;aff=30098&#038;cl=48418">Detail</a> | <a href="https://www.e-junkie.com/ecom/gb.php?ii=210444&#038;c=ib&#038;aff=30098&#038;cl=48418">Demo</a></p>
<h2>2. Gossip City</h2>
<p>Gossip City 是一个免费的主题，三栏，非常适合创建一个简单的明星八卦博客。</p>
<p class="entry_img"><img src="http://theme10.com/wp-content/uploads/theme10/gossip-city.png" alt="Gossip City" /><br />
<a href="http://designdisease.com/download-manager.php?id=2">Download</a> | <a href="http://designdisease.com/preview/gossipcity-2">Demo</a></p>
<h2>3. Vanity Magazine 2.0 WordPress Theme <small>(by <a href="https://www.e-junkie.com/ecom/gb.php?cl=48418&amp;c=ib&amp;aff=30098" >Gorilla Themes)</a></small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=225280&#038;c=ib&#038;aff=30098&#038;cl=48418">Vanity</a> 是一个设计明快并且设置灵活的杂志型主题，它适合于明星，时尚，休闲八卦等网站，他有两种配色，青色调和粉色调，并且功能强大，有首页推荐幻灯片，banner 广告管理，Flickr，Video, FeedBurner 集成，以及社交化网站插件集成。</p>
<p class="entry_img"><a href="https://www.e-junkie.com/ecom/gb.php?ii=225280&#038;c=ib&#038;aff=30098&#038;cl=48418"><img src="http://theme10.com/wp-content/uploads/theme10/vanity.jpg" alt="CelebrityPress WordPress Theme" /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=225280&#038;c=ib&#038;aff=30098&#038;cl=48418">Detail</a> | <a href="https://www.e-junkie.com/ecom/gb.php?ii=225280&#038;c=ib&#038;aff=30098&#038;cl=48418">Demo</a></p>
<h2>4. Phiyaz Entertaintment &#038; Community Theme</h2>
<p><a href="http://themeforest.net/item/phiyaz-entertaintment-community-theme/67220?ref=denishua">Phiyaz</a> 是一个用于创建明星娱乐社区的主题，它有黑白两种色调，它有所有你用于穿件娱乐网站的所有功能。</p>
<p class="entry_img"><a href="http://themeforest.net/item/phiyaz-entertaintment-community-theme/67220?ref=denishua"><img src="http://theme10.com/wp-content/uploads/theme10/phiyaz.jpg" alt="CelebrityPress WordPress Theme" /></a><br />
<a href="http://themeforest.net/item/phiyaz-entertaintment-community-theme/67220?ref=denishua">Detail</a> | <a href="http://themeforest.net/item/phiyaz-entertaintment-community-theme/67220?ref=denishua">Demo</a></p>
<h2>5. Showbiz(by <a href="https://www.e-junkie.com/ecom/gb.php?cl=66209&#038;c=ib&#038;aff=30098">Aloha Themes</a>)</h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?cl=66209&#038;c=ib&#038;aff=30098">Showbiz</a> 是一个全新的明星时尚，休闲八卦的主题，它有一堆功能设置能够让你把整个网站设置的更加专业，这个主题有两种布局方式：标准的博客布局和多栏布局， 设置和使用非常灵活，适应你各种不同的需求。</p>
<p class="entry_img"><a href="https://www.e-junkie.com/ecom/gb.php?cl=66209&#038;c=ib&#038;aff=30098"><img src="http://theme10.com/wp-content/uploads/theme10/showbiz.jpg" alt="CelebrityPress WordPress Theme" /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?cl=66209&#038;c=ib&#038;aff=30098">Detail</a> | <a href="https://www.e-junkie.com/ecom/gb.php?cl=66209&#038;c=ib&#038;aff=30098">Demo</a></p>
<p><strong></strong></p>
<p>当然这些主题都是英文版，中文情况下可能会有一些不适应的情况，并且可能有些功能不需要，而需要的工鞥则没有，如果你想制作一款中文的明星时尚和八卦休闲的 WordPress 主题，那么你也可以<a href="http://wpjam.com/contact">联系我们</a>定制。</p>
<p>本文翻译自 <a href="http://theme10.com/top-celebrity-gossip-wordpress-themes/">Top 6 Celebrity Gossip WordPress Themes</a>，原文有 6 个适合明星时尚和八卦休闲的 WordPress 主题，这里节选其中最好的 5 个。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/article/top-celebrity-gossip-wordpress-themes/" title="5个最佳明星时尚八卦 WordPress 主题">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/article/top-celebrity-gossip-wordpress-themes/&title=5%E4%B8%AA%E6%9C%80%E4%BD%B3%E6%98%8E%E6%98%9F%E6%97%B6%E5%B0%9A%E5%85%AB%E5%8D%A6+WordPress+%E4%B8%BB%E9%A2%98&tags=WordPress 主题, "  title="5个最佳明星时尚八卦 WordPress 主题">收藏本文</a>
 / <a href="http://fairyfish.net/article/top-celebrity-gossip-wordpress-themes/#comments" title="5个最佳明星时尚八卦 WordPress 主题">15条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><h3>相关日志</h3><ul class="related_post"><li><a href="http://fairyfish.net/2012/04/12/half-of-the-top-100-blogs-now-use-wordpress/" title="国外前 100 名博客半数使用 WordPress">国外前 100 名博客半数使用 WordPress</a></li>
<li><a href="http://fairyfish.net/article/wordpress-performance/" title="WordPress 性能优化：为什么我的博客比你的快 ">WordPress 性能优化：为什么我的博客比你的快 </a></li>
<li><a href="http://fairyfish.net/m/wordpress-action-hooks/" title="WordPress 常用 Action 接口">WordPress 常用 Action 接口</a></li>
<li><a href="http://fairyfish.net/article/wordpress-seo/" title="WordPress SEO 宝典">WordPress SEO 宝典</a></li>
<li><a href="http://fairyfish.net/article/install-wordpress-on-mac-os-x/" title="在 Mac OS X 系统上安装 WordPress 本地测试">在 Mac OS X 系统上安装 WordPress 本地测试</a></li>
<li><a href="http://fairyfish.net/2010/12/23/wpjam-vshop/" title="基于 WordPress 虚拟商品销售的商城系统">基于 WordPress 虚拟商品销售的商城系统</a></li>
</ul><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1200188149&amp;utmr=-&amp;utmp=%2Frss%2Farticle%2Ftop-celebrity-gossip-wordpress-themes%2F&amp;utmdt=5%E4%B8%AA%E6%9C%80%E4%BD%B3%E6%98%8E%E6%98%9F%E6%97%B6%E5%B0%9A%E5%85%AB%E5%8D%A6+WordPress+%E4%B8%BB%E9%A2%98&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/article/top-celebrity-gossip-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>6个最佳用于餐厅，咖啡厅，美食的 WordPress 主题</title>
		<link>http://fairyfish.net/article/top-wordpress-themes-for-restaurants-cafes-and-food/</link>
		<comments>http://fairyfish.net/article/top-wordpress-themes-for-restaurants-cafes-and-food/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 18:42:13 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?p=2789</guid>
		<description><![CDATA[如果你经营一家餐厅或者咖啡厅，你想通过互联网来营销你的餐厅或者咖啡厅，或者吸引用户到你餐厅或者咖啡厅消费，甚至你想经营一个美食的博客，那么首先你要有一个专业的网站，这个时候使用 WordPress 是最佳最快的方法，今天就给大家推荐 6 个最佳用于餐厅，咖啡厅，美食的 WordPress 主题，让你能够快速建立专业的网站或者博客。]]></description>
			<content:encoded><![CDATA[<p>如果你经营一家餐厅或者咖啡厅，你想通过互联网来营销你的餐厅或者咖啡厅，或者吸引用户到你餐厅或者咖啡厅消费，甚至你想经营一个美食的博客，那么首先你要有一个专业的网站，这个时候使用 WordPress 是最佳最快的方法，今天就给大家推荐 6 个最佳用于餐厅，咖啡厅，美食的 WordPress 主题，让你能够快速建立专业的网站或者博客。</p>
<h2>1. Gourmet <small>(by <a href="http://templatic.com/members/go.php?r=6153&amp;i=l0">templatic</a>)</small></h2>
<p><a href="http://templatic.com/members/go.php?r=6153&#038;i=l28">Gourmet</a> 是一个含有美食网站所有功能的专业主题，如多重菜单，推荐项目，博客等等，使用该主题可以很快建立一个专业的美食网站。</p>
<p class="entry_img"><a href="http://templatic.com/members/go.php?r=6153&#038;i=l28"><img src="http://theme10.com/wp-content/uploads/theme10/gourmet.png" alt="Gourmet" /></a><br />
<a href="http://templatic.com/members/go.php?r=6153&#038;i=l28">Gourmet 的详细介绍<br />
</a></p>
<h2>2. Restaurant Theme <small>(by <a href="http://templatic.com/members/go.php?r=6153&amp;i=l0">templatic</a>)</small></h2>
<p>专业的设计，高效的代码 <a href="http://templatic.com/members/go.php?r=6153&#038;i=l13">Restaurant Theme</a> 让你能够快速建议一个自己的饭店网站。</p>
<p class="entry_img"><a href="http://templatic.com/members/go.php?r=6153&#038;i=l13"><img src="http://theme10.com/wp-content/uploads/theme10/templatic-restaurant.png" alt="Restaurant Theme " /></a><br />
<a href="http://templatic.com/members/go.php?r=6153&#038;i=l13">Restaurant Theme  详细介绍</a></p>
<h2>3. Organic Restaurant Theme<small> (by <a href="https://www.e-junkie.com/ecom/gb.php?cl=88913&#038;c=ib&#038;aff=30098">Organic Themes</a>)</small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=770062&#038;c=ib&#038;aff=30098&#038;cl=88913">Organic Restaurant Theme</a> 是美食相关产业的完美网上解决方案，它包含三个色调，奶黄，红色和白色，分别适合不同类型的餐厅，这个主题完全适应 WordPress 3.0，包含了 WordPress 3.0 的高级功能，所以该主题可以很容易根据你的餐厅的需求进行定制。</p>
<p class="entry_img"><a href="https://www.e-junkie.com/ecom/gb.php?ii=770062&#038;c=ib&#038;aff=30098&#038;cl=88913"><img src="http://theme10.com/wp-content/uploads/theme10/organic-restaurant.jpg" alt="Organic Restaurant Theme " /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=770062&#038;c=ib&#038;aff=30098&#038;cl=88913">Organic Restaurant Theme 详细介绍</a></p>
<h2>4. Delicious<small> (by <a href="https://www.e-junkie.com/ecom/gb.php?cl=25555&#038;c=ib&#038;aff=30098">WPZOOM.</a>)</small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=552839&#038;c=ib&#038;aff=30098&#038;cl=25555">Delicious</a> 是一个非常优雅的 WordPress 主题，适合餐厅，饭店，咖啡厅，酒吧，餐馆，小吃店等。</p>
<p class="entry_img"><a href="https://www.e-junkie.com/ecom/gb.php?ii=552839&#038;c=ib&#038;aff=30098&#038;cl=25555"><img src="http://theme10.com/wp-content/uploads/theme10/delicious-wpzoom.png" alt="Delicious" /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=552839&#038;c=ib&#038;aff=30098&#038;cl=25555">Delicious 详细介绍</a></p>
<h2>5. The Restaurant</h2>
<p><a href="http://themeforest.net/item/the-restaurant/111482?ref=denishua">The Restaurant</a> 是一个用于饭店的高定制的主题，可以使用 colorpicker 修改颜色，可以很容易切换布局和添加幻灯，这些功能都会深深吸引你的客户。</p>
<p class="entry_img"><a href="http://themeforest.net/item/the-restaurant/111482?ref=denishua"><img src="http://theme10.com/wp-content/uploads/theme10/the-restaurant-themeforest.jpg" alt="The Restaurant" /></a><br />
<a href="http://themeforest.net/item/the-restaurant/111482?ref=denishua">The Restaurant 详细介绍</a></p>
<h2>6. Time for Food</h2>
<p><a href="http://themeforest.net/item/time-for-food-for-wordpress/60079?ref=denishua">Time for Food</a> 是一个为美食博客设计的非常漂亮的 WordPress 主题，它可以用来分享菜谱，它兼容各种浏览器，并且使用了 TimThumb 脚本很容易生成缩略图。</p>
<p class="entry_img"><a href="http://themeforest.net/item/time-for-food-for-wordpress/60079?ref=denishua"><img src="http://theme10.com/wp-content/uploads/theme10/time-for-food-themeforest.png" alt="Time for Food" /></a><br />
<a href="http://themeforest.net/item/time-for-food-for-wordpress/60079?ref=denishua">Time for Food 详细介绍</a></p>
<p>翻译自：<a href="http://theme10.com/top-wordpress-themes-for-restaurants-cafes-and-food/">Top 6 WordPress Themes for Restaurants, Cafes and Food</a>。</p>
<p>如果你想制作一个餐厅方面的网站，而上面的主题而又不适合你，那你也可以联系 <a href="http://wpjam.com">WordPress JAM</a> 定制。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/article/top-wordpress-themes-for-restaurants-cafes-and-food/" title="6个最佳用于餐厅，咖啡厅，美食的 WordPress 主题">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/article/top-wordpress-themes-for-restaurants-cafes-and-food/&title=6%E4%B8%AA%E6%9C%80%E4%BD%B3%E7%94%A8%E4%BA%8E%E9%A4%90%E5%8E%85%EF%BC%8C%E5%92%96%E5%95%A1%E5%8E%85%EF%BC%8C%E7%BE%8E%E9%A3%9F%E7%9A%84+WordPress+%E4%B8%BB%E9%A2%98&tags=WordPress 主题, "  title="6个最佳用于餐厅，咖啡厅，美食的 WordPress 主题">收藏本文</a>
 / <a href="http://fairyfish.net/article/top-wordpress-themes-for-restaurants-cafes-and-food/#comments" title="6个最佳用于餐厅，咖啡厅，美食的 WordPress 主题">8条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><h3>相关日志</h3><ul class="related_post"><li><a href="http://fairyfish.net/2012/04/12/half-of-the-top-100-blogs-now-use-wordpress/" title="国外前 100 名博客半数使用 WordPress">国外前 100 名博客半数使用 WordPress</a></li>
<li><a href="http://fairyfish.net/article/wordpress-performance/" title="WordPress 性能优化：为什么我的博客比你的快 ">WordPress 性能优化：为什么我的博客比你的快 </a></li>
<li><a href="http://fairyfish.net/m/wordpress-action-hooks/" title="WordPress 常用 Action 接口">WordPress 常用 Action 接口</a></li>
<li><a href="http://fairyfish.net/article/wordpress-seo/" title="WordPress SEO 宝典">WordPress SEO 宝典</a></li>
<li><a href="http://fairyfish.net/article/install-wordpress-on-mac-os-x/" title="在 Mac OS X 系统上安装 WordPress 本地测试">在 Mac OS X 系统上安装 WordPress 本地测试</a></li>
<li><a href="http://fairyfish.net/2010/12/23/wpjam-vshop/" title="基于 WordPress 虚拟商品销售的商城系统">基于 WordPress 虚拟商品销售的商城系统</a></li>
</ul><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=837064653&amp;utmr=-&amp;utmp=%2Frss%2Farticle%2Ftop-wordpress-themes-for-restaurants-cafes-and-food%2F&amp;utmdt=6%E4%B8%AA%E6%9C%80%E4%BD%B3%E7%94%A8%E4%BA%8E%E9%A4%90%E5%8E%85%EF%BC%8C%E5%92%96%E5%95%A1%E5%8E%85%EF%BC%8C%E7%BE%8E%E9%A3%9F%E7%9A%84+WordPress+%E4%B8%BB%E9%A2%98&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/article/top-wordpress-themes-for-restaurants-cafes-and-food/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress 杂志型 CMS 主题：Blaze Gallery</title>
		<link>http://fairyfish.net/2010/09/08/blaze-gallery/</link>
		<comments>http://fairyfish.net/2010/09/08/blaze-gallery/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 16:08:41 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?p=2915</guid>
		<description><![CDATA[<a href="http://wpjam.net/item/blaze-gallery/?ref=denishua">Blaze Gallery</a> 是 WPBlazer 为 WPJam 应用商城制作发布的一款 WordPress 杂志型 CMS 主题。这款主题功能强大，配色简练，图文并茂的内容表现形式使整个站点更具视觉冲击力。]]></description>
			<content:encoded><![CDATA[<p><a href="http://wpjam.net/item/blaze-gallery/?ref=denishua">Blaze Gallery</a> 是 WPBlazer 为 WPJam 应用商城制作发布的一款 WordPress 杂志型 CMS 主题。这款主题功能强大，配色简练，图文并茂的内容表现形式使整个站点更具视觉冲击力。</p>
<p class="entry_img"><img src="http://wpjam.net/wp-content/uploads/screenshot/blaze-gallery.jpg" alt="WordPress 杂志型 CMS 主题：Blaze Gallery" /><br />
WordPress 杂志型 CMS 主题：Blaze Gallery</p>
<h2>Blaze Gallery 主题特性和功能</h2>
<ul>
<li>特色文章展示区，有助于提高指定文章的关注度。</li>
<li>已开启文章特色图像和自定义导航菜单功能。</li>
<li>后台主题选项页面可设定社交网络账号，以及特色文章区域显示的文章数量，还可以插入谷歌流量统计代码。</li>
<li>开启多语言功能，默认已支持中英双语。</li>
<li>内置支持 PageNavi 导航功能。</li>
<li>4 个独立的 Widget 区域（首页底部三个 Widget 以及其他页面的 sidebare 的 Widget），可根据需要灵活调整。</li>
<li>支持留言分页和嵌套回复功能。</li>
<li>内置 Lightbox 图片浏览特效。</li>
<li>各大主流浏览器中表现一致 (IE6, IE7, IE8, Chrome, Firefox, Opera, Safari 均已测试)。</li>
</ul>
<p>详细可参考 <a href="http://wpjam.net/themes/blaze-gallery/">Blaze Gallery 演示</a>。</p>
<h2>Blaze Gallery 主题使用</h2>
<ol>
<li>发表或编辑文章时，可为文章增加特色图片。上传的特色图片建议尺寸为 930 x 310 像素，或在上传时将图片缩放裁剪至该尺寸。
<p>只需上传一个图片即可，程序会根据上传图片自动生成不同尺寸的特色图片，在主题中分别调用。</li>
<li>发表或编辑文章时，可以选择是否在首页特色文章展示区域显示此篇文章。</li>
</ol>
<p>该主题是 <a href="http://wpjam.net/?ref=denishua">WPJAM 应用商城</a>的第二款主题，定价为 29.97 RMB，欢迎前来<a href="http://wpjam.net/item/blaze-gallery/?ref=denishua">购买</a>。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2010/09/08/blaze-gallery/" title="WordPress 杂志型 CMS 主题：Blaze Gallery">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2010/09/08/blaze-gallery/&title=WordPress+%E6%9D%82%E5%BF%97%E5%9E%8B+CMS+%E4%B8%BB%E9%A2%98%EF%BC%9ABlaze+Gallery&tags=WordPress 主题, "  title="WordPress 杂志型 CMS 主题：Blaze Gallery">收藏本文</a>
 / <a href="http://fairyfish.net/2010/09/08/blaze-gallery/#comments" title="WordPress 杂志型 CMS 主题：Blaze Gallery">3条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><h3>相关日志</h3><ul class="related_post"><li><a href="http://fairyfish.net/2012/04/12/half-of-the-top-100-blogs-now-use-wordpress/" title="国外前 100 名博客半数使用 WordPress">国外前 100 名博客半数使用 WordPress</a></li>
<li><a href="http://fairyfish.net/article/wordpress-performance/" title="WordPress 性能优化：为什么我的博客比你的快 ">WordPress 性能优化：为什么我的博客比你的快 </a></li>
<li><a href="http://fairyfish.net/m/wordpress-action-hooks/" title="WordPress 常用 Action 接口">WordPress 常用 Action 接口</a></li>
<li><a href="http://fairyfish.net/article/wordpress-seo/" title="WordPress SEO 宝典">WordPress SEO 宝典</a></li>
<li><a href="http://fairyfish.net/article/install-wordpress-on-mac-os-x/" title="在 Mac OS X 系统上安装 WordPress 本地测试">在 Mac OS X 系统上安装 WordPress 本地测试</a></li>
<li><a href="http://fairyfish.net/2010/12/23/wpjam-vshop/" title="基于 WordPress 虚拟商品销售的商城系统">基于 WordPress 虚拟商品销售的商城系统</a></li>
</ul><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1465164632&amp;utmr=-&amp;utmp=%2Frss%2F2010%2F09%2F08%2Fblaze-gallery%2F&amp;utmdt=WordPress+%E6%9D%82%E5%BF%97%E5%9E%8B+CMS+%E4%B8%BB%E9%A2%98%EF%BC%9ABlaze+Gallery&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2010/09/08/blaze-gallery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>JamOne 单栏 WordPress 主题</title>
		<link>http://fairyfish.net/2010/09/02/jam-one-wordpress-theme/</link>
		<comments>http://fairyfish.net/2010/09/02/jam-one-wordpress-theme/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 09:34:07 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?p=2911</guid>
		<description><![CDATA[Jam-One 是 UnderOne 为 WPJAM 应用商城发布的的单栏 WordPress 主题，Jam-One 回归主题制作的传统，让用户更关注文字，抛弃花里胡哨的设计，一种夏天清爽的感觉。]]></description>
			<content:encoded><![CDATA[<p><a href="http://wpjam.net/item/jam-one/?ref=denishua">JamOne</a> 是 <a href="http://underone.com">UnderOne</a> 为 WPJAM 应用商城发布的的单栏 WordPress 主题，JamOne 回归主题制作的传统，让用户更关注文字，抛弃花里胡哨的设计，一种夏天清爽的感觉，虽然现在是秋天，都快冬天，但是广州这边还是很热。</p>
<p class="entry_img"><a href="http://wpjam.net/themes/jamone/"><img src="http://wpjam.net/wp-content/uploads/screenshot/Jam-One.jpg" alt="Jam-One 单栏 WordPress 主题" /></a><br />
JamOne 单栏 WordPress 主题</p>
<ul>
<li>JamOne 单栏，支持 Widget，支持最新版本的 WordPress 3.01。</li>
<li>支持留言嵌套回复，支持留言分页。</li>
<li>面包屑导航。</li>
<li>支持 <a href="http://fairyfish.net/2007/09/12/wordpress-23-related-posts-plugin/">WordPress Related Post</a> 插件和 <a href="http://fairyfish.net/2009/11/16/wp-postviews/">PostViews</a> 插件，需要另外安装。</li>
<li>主题默认已支持 PageNavi 功能。</li>
</ul>
<p>详细请看<a href="http://wpjam.net/themes/jamone/">演示</a>。</p>
<p>该主题只需 19.98 RMB，购买链接：<a href="http://wpjam.net/item/jam-one/?ref=denishua">JamOne 单栏 WordPress 主题</a></p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2010/09/02/jam-one-wordpress-theme/" title="JamOne 单栏 WordPress 主题">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2010/09/02/jam-one-wordpress-theme/&title=JamOne+%E5%8D%95%E6%A0%8F+WordPress+%E4%B8%BB%E9%A2%98&tags=WordPress 主题, "  title="JamOne 单栏 WordPress 主题">收藏本文</a>
 / <a href="http://fairyfish.net/2010/09/02/jam-one-wordpress-theme/#comments" title="JamOne 单栏 WordPress 主题">11条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><h3>相关日志</h3><ul class="related_post"><li><a href="http://fairyfish.net/2012/04/12/half-of-the-top-100-blogs-now-use-wordpress/" title="国外前 100 名博客半数使用 WordPress">国外前 100 名博客半数使用 WordPress</a></li>
<li><a href="http://fairyfish.net/article/wordpress-performance/" title="WordPress 性能优化：为什么我的博客比你的快 ">WordPress 性能优化：为什么我的博客比你的快 </a></li>
<li><a href="http://fairyfish.net/m/wordpress-action-hooks/" title="WordPress 常用 Action 接口">WordPress 常用 Action 接口</a></li>
<li><a href="http://fairyfish.net/article/wordpress-seo/" title="WordPress SEO 宝典">WordPress SEO 宝典</a></li>
<li><a href="http://fairyfish.net/article/install-wordpress-on-mac-os-x/" title="在 Mac OS X 系统上安装 WordPress 本地测试">在 Mac OS X 系统上安装 WordPress 本地测试</a></li>
<li><a href="http://fairyfish.net/2010/12/23/wpjam-vshop/" title="基于 WordPress 虚拟商品销售的商城系统">基于 WordPress 虚拟商品销售的商城系统</a></li>
</ul><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=2012129228&amp;utmr=-&amp;utmp=%2Frss%2F2010%2F09%2F02%2Fjam-one-wordpress-theme%2F&amp;utmdt=JamOne+%E5%8D%95%E6%A0%8F+WordPress+%E4%B8%BB%E9%A2%98&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2010/09/02/jam-one-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Template Monster 来到中国</title>
		<link>http://fairyfish.net/2009/02/18/template-monster-china/</link>
		<comments>http://fairyfish.net/2009/02/18/template-monster-china/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 05:14:55 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[Template Monster]]></category>
		<category><![CDATA[WordPress 主题]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?p=1859</guid>
		<description><![CDATA[Template Monster （模板怪兽，或者版型怪兽，你喜欢！）是全球最大规模的网页模板销售网站，现在现在他进入了中国市场。]]></description>
			<content:encoded><![CDATA[<p><a href="http://fairyfish.net/go/templatemonster">Template Monster</a>（模板怪兽，或者版型怪兽，你喜欢！）是全球最大规模的网页模板销售网站，现在也进入了中国市场，由一家叫做昆山奈腾信息技术有限公司运行。<strong>据个人观察，Template Monster 中国各方面做的都美元其官方不是太好，个人建议还是到其官方网站购买</strong>。</p>
<p><span id="more-1859"></span></p>
<p><a href="http://fairyfish.net/go/templatemonster">Template Monster</a> 提供网站，Flash，商标（logo），博客（blog），CSS，企业识别（CI）等模板，更重要的是他还提供了很多开源程序的模板，如 osCommerce，CRE Loaded，PHP-Nuke 等模板，当然也包括我们喜欢的<a href="http://fairyfish.net/template-monster-wordpress-themes/"> WordPress 模板</a>！</p>
<p>Template Monster 的模板都设计非常漂亮，而且都是欧美风格，设计很大气，不过价格也是有点贵，比如其中一款 WordPress 主题，单买要 324 元，买断这需要 6,110元，单买的价格还可以承受，但是买断的价格视乎过高了。不过每个主题他都提供 PSD 源文件，所以购买之后，很方便做一些修改。另外我看了下 <a href="http://fairyfish.net/go/templatemonster">Template Monster</a> 的 WordPress 主题目前已经改成了 DIV+CSS 布局，改变了以前 table 的布局，并且代码比较清晰明了，所以基于 Template Monster 的模板进行二次开发也是不错的选择。</p>
<p><a href="http://fairyfish.net/go/templatemonster">Template Monster 中国</a>目前已经支持支付宝方式付款，所以比较方便购买，如果你想使用一个和比较特色的 WordPress 模板，不烦可以尝试下 <a href="http://fairyfish.net/go/templatemonster">Template Monster 中国</a> 的模板。当然如果你觉得买断价格太贵或者没有你心仪的主题了，也可以联系我<a href="http://fairyfish.net/wordpress-projects/">定制化 WordPress 主题</a>。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2009/02/18/template-monster-china/" title="Template Monster 来到中国">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2009/02/18/template-monster-china/&title=Template+Monster+%E6%9D%A5%E5%88%B0%E4%B8%AD%E5%9B%BD&tags=Template Monster, WordPress 主题, "  title="Template Monster 来到中国">收藏本文</a>
 / <a href="http://fairyfish.net/2009/02/18/template-monster-china/#comments" title="Template Monster 来到中国">19条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><h3>相关日志</h3><ul class="related_post"><li><a href="http://fairyfish.net/2009/08/05/google-chrome-theme/" title="Google 浏览器 Chrome 主题">Google 浏览器 Chrome 主题</a></li>
<li><a href="http://fairyfish.net/2007/12/02/introduce-to-template-monster/" title="Template Monster 介绍">Template Monster 介绍</a></li>
<li><a href="http://fairyfish.net/m/screenqueri-es/" title="Screenqueri.es：响应式设计测试工具">Screenqueri.es：响应式设计测试工具</a></li>
<li><a href="http://fairyfish.net/m/moobile/" title="Moobile：基于 MooTools 框架实现的移动 WebApp 开发框架">Moobile：基于 MooTools 框架实现的移动 WebApp 开发框架</a></li>
<li><a href="http://fairyfish.net/article/html5-css3-books/" title="HTML5 和 CSS3 书籍推荐">HTML5 和 CSS3 书籍推荐</a></li>
<li><a href="http://fairyfish.net/article/google-analytics-ios/" title="使用 Google Analytics 对 iPhone/iPad 应用进行统计和分析">使用 Google Analytics 对 iPhone/iPad 应用进行统计和分析</a></li>
</ul><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1935753180&amp;utmr=-&amp;utmp=%2Frss%2F2009%2F02%2F18%2Ftemplate-monster-china%2F&amp;utmdt=Template+Monster+%E6%9D%A5%E5%88%B0%E4%B8%AD%E5%9B%BD&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2009/02/18/template-monster-china/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>免费的 StarCraft II WordPress 3.0 主题: Enter the Fascinating World!</title>
		<link>http://fairyfish.net/m/free-wordpress-theme-for-starcraft-ii/</link>
		<comments>http://fairyfish.net/m/free-wordpress-theme-for-starcraft-ii/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 05:05:22 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?post_type=m&#038;p=2817</guid>
		<description><![CDATA[模板怪兽发布了一个免费的 StarCraft II 的 WordPress 主题，做的非常漂亮，这个主题基于 WordPress 默认的 2010 主题，并且他只做了三个 header 图片： 下载：Free WordPress 3.0 Theme for StarCraft II &#62;&#62;&#62;继续阅读全文 ... &#169; 我爱水煮鱼 / 收藏本文 / 1条评论 / RSS 订阅 / 长期承接 WordPress 项目 / 主机域名优惠码 / 新浪微博 相关日志国外前 100 名博客半数使用 WordPress WordPress 性能优化：为什么我的博客比你的快 WordPress 常用 Action 接口 WordPress SEO 宝典 在 Mac OS X [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://fairyfish.net/go/templatemonster">模板怪兽</a>发布了一个免费的  StarCraft II 的 WordPress 主题，做的非常漂亮，这个主题基于 WordPress 默认的 2010 主题，并且他只做了三个 header 图片：</p>
<p><img class="alignleft size-full wp-image-3575" title="Free WordPress 3.0 Theme for StarCraft II" src="http://blog.templatemonster.com/wp-content/uploads/2010/07/Free-Wordpress-3.0-Theme-for-StarCraft-II.jpg" alt="Free WordPress 3.0 Theme for StarCraft II: Enter the  Fascinating World!" width="600"/></p>
<p><img class="alignleft size-full wp-image-3577" title="2Free WordPress 3.0 Theme for StarCraft II" src="http://blog.templatemonster.com/wp-content/uploads/2010/07/2Free-Wordpress-3.0-Theme-for-StarCraft-II.jpg" alt="Free WordPress 3.0 Theme for StarCraft II: Enter the  Fascinating World!" width="600"  /></p>
<p><img class="alignleft size-full wp-image-3578" title="3Free WordPress 3.0 Theme for StarCraft II" src="http://blog.templatemonster.com/wp-content/uploads/2010/07/3Free-Wordpress-3.0-Theme-for-StarCraft-II.jpg" alt="Free WordPress 3.0 Theme for StarCraft II: Enter the  Fascinating World!" width="600" /></p>
<p>下载：<a href="http://downloads.templatemonster.com/samples/free_free-wordpress-30-starcraft-theme_9ays9yithyjo8udv.zip">Free WordPress 3.0 Theme for StarCraft II</a></p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/m/free-wordpress-theme-for-starcraft-ii/" title="免费的 StarCraft II WordPress 3.0 主题: Enter the Fascinating World! ">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/m/free-wordpress-theme-for-starcraft-ii/&title=%E5%85%8D%E8%B4%B9%E7%9A%84+StarCraft+II+WordPress+3.0+%E4%B8%BB%E9%A2%98%3A+Enter+the+Fascinating+World%21+&tags=WordPress 主题, "  title="免费的 StarCraft II WordPress 3.0 主题: Enter the Fascinating World! ">收藏本文</a>
 / <a href="http://fairyfish.net/m/free-wordpress-theme-for-starcraft-ii/#comments" title="免费的 StarCraft II WordPress 3.0 主题: Enter the Fascinating World! ">1条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><h3>相关日志</h3><ul class="related_post"><li><a href="http://fairyfish.net/2012/04/12/half-of-the-top-100-blogs-now-use-wordpress/" title="国外前 100 名博客半数使用 WordPress">国外前 100 名博客半数使用 WordPress</a></li>
<li><a href="http://fairyfish.net/article/wordpress-performance/" title="WordPress 性能优化：为什么我的博客比你的快 ">WordPress 性能优化：为什么我的博客比你的快 </a></li>
<li><a href="http://fairyfish.net/m/wordpress-action-hooks/" title="WordPress 常用 Action 接口">WordPress 常用 Action 接口</a></li>
<li><a href="http://fairyfish.net/article/wordpress-seo/" title="WordPress SEO 宝典">WordPress SEO 宝典</a></li>
<li><a href="http://fairyfish.net/article/install-wordpress-on-mac-os-x/" title="在 Mac OS X 系统上安装 WordPress 本地测试">在 Mac OS X 系统上安装 WordPress 本地测试</a></li>
<li><a href="http://fairyfish.net/2010/12/23/wpjam-vshop/" title="基于 WordPress 虚拟商品销售的商城系统">基于 WordPress 虚拟商品销售的商城系统</a></li>
</ul><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1720653875&amp;utmr=-&amp;utmp=%2Frss%2Fm%2Ffree-wordpress-theme-for-starcraft-ii%2F&amp;utmdt=%E5%85%8D%E8%B4%B9%E7%9A%84+StarCraft+II+WordPress+3.0+%E4%B8%BB%E9%A2%98%3A+Enter+the+Fascinating+World%21+&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/m/free-wordpress-theme-for-starcraft-ii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程电子书下载</title>
		<link>http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/</link>
		<comments>http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 08:32:56 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/?p=2674</guid>
		<description><![CDATA[从零开始制作 WordPress 主题的这个教程是我发布在我爱水煮鱼上的第一个非常完整的 WordPress 相关教程，它会一步一步教你如何制作 WordPress 主题，今天制作这个教程的 PDF 电子书，以方便大家查询和学习。]]></description>
			<content:encoded><![CDATA[<p><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">从零开始制作 WordPress 主题</a>的这个教程是我发布在<a href="http://fairyfish.net">我爱水煮鱼</a>上的第一个非常完整的 WordPress 相关教程，它会一步一步教你如何制作 WordPress 主题，这个教程最初翻译自 <a title="o you want to create WordPress themes huh?" href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/" id="c3c-">So you want to create WordPress themes huh?</a> 经过多次修正以适应中文习惯，并加入了个人的理解。<br />
<span id="more-2674"></span></p>
<p>很早之前我就发布这个教程的 PDF 电子书之后，截至目前为止已经被下载超过 12354 次，并且这个统计只是 <a href="http://boxcn.net">box.net</a>提供的数据，其他下载站的数据无法统计，估计至少还有1万次的下载，从2009年12月份来，我已经对这个教程进行大的修正，今天（2010-1-20）发布修正后的第一版。</p>
<p>当然还会存在一些错误，所以为了能够使得这一教程能够持续的修正，我们接受赞助商，赞助商可以在这个电子书中获得展示广告位和产品或者服务的一段是描述。如果你对我们的教程的话，你可以联系 Denis（<a href="http://wpjam.com/contact/">http://wpjam.com/contact/</a>）。</p>
<p>曾经很早之前就想过和朋友一起出一本 WordPress 的书，但是一直因为各种原因未能制作 <img src='http://fairyfish.b0.upaiyun.com/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  。但是如果把目标缩小一下，通过先写某个专题的 WordPress 电子书，然后分享，也不是一个不错的想法，所以我接下来会继续制作一些其他 PDF 电子书，比如 WordPress 插件制作教程，从零开始使用 WordPress 等等，也许哪一天真的可以把这个整理成一本书。</p>
<p><a href="http://fairyfish.net/series/wordpress-theme-tutorials/"><img src="http://fairyfish.net/wp-content/banner/wordpress-theme-tutorials.jpg" style="border: 1px solid rgb(148, 179, 178);padding:4px; margin-right:20px;" align="center" alt="WordPress 主题教程"> </a> 下载：<a href="http://www.boxcn.net/shared/ba1l6vpuv0">WordPres 主题教程电子书</a>。</p>
<p>Pseric 也发布了这个教程的繁体中文版，如果你是台湾或者香港的读者，你可以到 Pseric  的 <a href="http://www.freegroup.org/">免費資源網路社群</a> 下这本电子书的繁体中文版：<a href="http://www.freegroup.org/2010/01/free-wordpress-theme-ebook/">免費WordPress佈景主題教學電子書</a>。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B%E7%94%B5%E5%AD%90%E4%B9%A6%E4%B8%8B%E8%BD%BD&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程电子书下载">收藏本文</a>
 / <a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/#comments" title="WordPress 主题教程电子书下载">52条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><strong>WordPress 主题教程电子书下载</strong></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1906226580&amp;utmr=-&amp;utmp=%2Frss%2F2010%2F01%2F20%2Fwordpress-theme-tutorials-ebook%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B%E7%94%B5%E5%AD%90%E4%B9%A6%E4%B8%8B%E8%BD%BD&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #16：留言模板</title>
		<link>http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/</link>
		<comments>http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 09:35:11 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/</guid>
		<description><![CDATA[留言模板是从零开始创建 WordPress 主题系列教程的最后一篇。这篇将涉及到博客一个比较重要的东西；评论模板。]]></description>
			<content:encoded><![CDATA[<p>这篇教程是在 WordPress 2.7 之前撰写的，而 WordPress 2.7 之后支持了 Thread Comments，这里有<a href="http://fairyfish.net/2008/11/02/wordpress-27-thread-comments/">让你的主题实现 WordPress 2.7 的 Thread Comments </a>的方法。但是还是建议你查看下这篇教程。</p>
<p><strong>留言模板</strong>是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的最后一篇。这篇将涉及到博客一个比较重要的东西；<strong>评论模板</strong>。<br />
<span id="more-903"></span></p>
<p><strong>你应该知道：</strong></p>
<ul>
<li>没有快速的方式在 comments.php 建立评论模板</li>
<li>大部分的 WordPress 设计者使用来自 WordPress 默认主题（<strong>Kubrick）</strong>的<strong>默认评论模板根据</strong>。</li>
<li>一些设计者会修改默认的评论模板去适合他们自己的需求。</li>
<li><strong>你将使用我的对默认评论模板的修改版本。</strong></li>
</ul>
<h2>第1步：创建 <code>comments.php</code></h2>
<ul>
<li>创建一个新文件：<code>comments.php</code>。</li>
<li>把我的 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/comments.txt">comments.txt</a> 文件中的内容复制到 <strong>comments.php</strong>。</li>
<li>保存 comments.php 文件。</li>
</ul>
<h2>第2步：样式化留言</h2>
<ul>
<li>把我的 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/comments-template-css.txt">comments-template-css</a> 文件中的内容拷贝到你的 <strong>style.css </strong>文件中。</li>
<li>复制到 style.css 的底部或者刚好 <strong>#footer </strong>的上面。</li>
</ul>
<h2>第3步：在 <code>single.php</code> 添加留言模板</h2>
<p>在 <code>single.php</code> 文件中，<strong>entry</strong> DIV 的下面，输入以下代码：</p>
<p><strong>&lt;div class=”comments-template”&gt;<br />
&lt;?php comments_template(); ?&gt;<br />
&lt;/div&gt;</strong></p>
<p><img src="http://pic.fairyfish.com/2007/07/comments-template.gif" alt="comments-template.gif" /></p>
<p><code>comments_template()</code> 这个函数是用来从 <strong>comments.php</strong> 文件调用评论模板。 <code>comments.php</code> 文件然后就会根据它的模板（或者代码）去显示评论列表。列表中的每个条目是一条评论。</p>
<p>如果想让人们可以在静态页面也可以留言，同样可以把 <code>comments_template()</code> 函数用到 <code>page.php</code> 文件。</p>
<h2>第4步：验证代码</h2>
<p>第四步是验证你的代码，然而可以不进行第四步的，因为你在使用的是我已经<strong>整理</strong>过的默认主题评论模板的修改版。<strong>我已经替你验证过代码了。</strong></p>
<p>验证：</p>
<ul>
<li><strong>查看 &gt; 页面源代码</strong></li>
<li>拷贝所有源代码</li>
<li>然后到 <a href="http://validator.w3.org/">validator</a>。</li>
<li>把你的代码粘贴到 <strong>Direct Input</strong> 框中。</li>
<li>点击 <strong>Check</strong>。</li>
</ul>
<p>以后的参考（当你创建你自己的主题和评论模板），下面是需要验证的页面：</p>
<ul>
<li>主页 &#8212; Home page</li>
<li>存档页面 &#8212; Archive pages</li>
<li>类别页面 &#8212; Category pages （如果你自定义了类别页面）</li>
<li>搜索结果页面 &#8212; Search result pages</li>
<li>静态页面 &#8212; Pages （如：About）</li>
<li>单一日志页面 &#8212; Single post view page</li>
<li>单一日志没有留言 &#8212; Single post with no comments</li>
<li>单一日志有留言 &#8212; Single post with comments</li>
<li>单一日志含有必须登录信息 &#8212; Single post with must login message</li>
<li>单一日志没有必须登录信息 &#8212; Single post with no login required message</li>
<li>密码保护的单一日志并有留言 &#8212; Password protected single post with comments</li>
</ul>
<h2>评论模板的进一步解释</h2>
<ul>
<li>评论模板从根本上说是一个<strong>有序列表（</strong>OL），不是无序的，尽管它们基本上同样方式工作。 无序列表是以圆点列表组织的。有序列表则是以数字列表组织的（每个条目都有一个数字，从1开始）。</li>
<li>在 <strong>single.php</strong> 文件中，你用 <strong>comments-template</strong> DIV 围住<strong>comments_template()</strong>。现在你的评论模板在一个 DIV 标签中的一个有序列表中。</li>
</ul>
<p>当你你的日志是密码保护的，你的评论同样是密码保护的：</p>
<p><img src="http://pic.fairyfish.com/2007/07/password-protected.gif" alt="password-protected.gif" /></p>
<p>这个修改版的留言模板有一个 H2 子标题显示 <strong>Password Protected</strong>。默认的留言模板是没有的。</p>
<p><strong>下面展示了哪些东西组成了你的留言列表：</strong></p>
<p><img src="http://pic.fairyfish.com/2007/07/comments-template-core.gif" alt="comments-template-core.gif" /></p>
<p>简单整理下就是：</p>
<p><img src="http://pic.fairyfish.com/2007/07/comments-template-simple.gif" alt="comments-template-simple.gif" /></p>
<p><code>comment_text()</code> 函数就是用来调用每条留言的。</p>
<p>我不会解释留言模板的 CSS 代码的意思。不像 <code>comments.php</code> 文件中的代码，你可以随便测试你的 CSS 代码而不会弄坏留言模板。自己去测试回比我的解释对你更有好处。</p>
<p><strong>今天没有课程回顾，你已经完成了 WordPress 主题制作教程</strong>。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2316%EF%BC%9A%E7%95%99%E8%A8%80%E6%A8%A1%E6%9D%BF&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #16：留言模板">收藏本文</a>
 / <a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/#comments" title="WordPress 主题教程 #16：留言模板">47条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=749664051&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F07%2F13%2Fwp-theme-lesson-16-comments-template%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2316%EF%BC%9A%E7%95%99%E8%A8%80%E6%A8%A1%E6%9D%BF&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #15：子模板文件</title>
		<link>http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/</link>
		<comments>http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 09:16:02 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/</guid>
		<description><![CDATA[子模板文件是从零开始创建 WordPress 主题系列教程的第十五篇，这篇将创建更多的子模板文件。]]></description>
			<content:encoded><![CDATA[<p><strong>子模板文件</strong>是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第十五篇，这篇将和像上一篇创建 <code>header.php</code>，<code>sidebar.php</code> 和 <code>footer.php </code> 这些模板文件一样创建更多的子模板文件。<br />
<span id="more-893"></span></p>
<p>现在 <a href="http://www.wpdesigner.com/2007/03/15/wp-theme-lesson-14-footer-and-dividing-index/">index.php 文件已被拆分</a>，这一切都变得更简单。</p>
<h2>第1步：<code>archive.php</code></h2>
<p>在做这步之前，查看你的侧边栏，点击其中的一个存档链接，结果的页面是不是和首页没有什么不同？</p>
<ul>
<li>创建一个新文件：<code>archive.php</code></li>
<li>把 <code>index.php</code> 中所有东西复制到 <code>archive.php</code></li>
<li>保存 <code>archive.php</code></li>
<li>在 <code>archive.php</code> 文件，把 <code>the_content</code> 改成 <code>the_excerpt</code>。</li>
<li>再次保存 <code>archive.php</code> 文件</li>
</ul>
<p>通过创建一个 <code>archive.php</code> 文件并把它改成和 <code>index.php</code> 不一样，这就是<strong>定制化存档页面的</strong>外观。</p>
<p>现在如果你刷新你的存档页面，它将只显示摘要而不是全文的日志。</p>
<p><strong>为什么你想这么做呢？</strong> &#8212; 防止 Google 以为重复内容惩罚你的博客，如果一个存档页面和首页显示相同的内容，那就是重复的内容。</p>
<p><strong>如果是私人的博客呢？</strong>那么就没有必要去区分首页和存档页面。但这并不是说摘要对私人博客没有用。</p>
<p><strong>同样</strong> &#8212; 默认你的<strong>类别页面</strong>将使用 <code>archive.php</code> 显示内容，如果你没有 <code>archive.php</code> 文件，类别页面将使用 <code>index.php</code> 显示内容。</p>
<p>如果你想<strong>类别页面</strong>和<strong>首页</strong>和<strong>存档页面</strong>看起来不一样，那么创佳一个 <code>category.php</code> 文件并定制化它。</p>
<h2>第2步：<code>search.php</code></h2>
<ul>
<li>创建一个新文件：<code>search.php</code></li>
<li>把 <code>archive.php</code> 中所有东西复制到 <code>search.php</code></li>
<li>保存就完成了。</li>
</ul>
<p>现在所有的，所有的搜索结果将会返回摘要。如果没有 <code>search.php</code> 这个模板文件，搜索选项将会使用<code>index.php</code> 去显示搜索结果。</p>
<p>（可选）你可以返回到<a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro">课程1</a>去回顾者层次结构。</p>
<h2>第3步：<code>page.php</code> 和 <code>single.php</code></h2>
<ul>
<li>创建两个新文件：<code>page.php</code> 和 <code>single.php</code></li>
<li>把 <code>index.php</code> 中所有内容拷贝到 <code>page.php</code> 和 <code>single.php</code>。（从现在开始，页面和单篇日志应该是一样的。）</li>
<li>保存页面和单篇日志文件，关闭它们。</li>
</ul>
<h2>第4步：定制 <code>page.php</code></h2>
<p>还记得<strong>静态页面</strong>和<strong>页面</strong>之间的不同吗？<code>page.php</code> 模板文件是用来定制化这些特殊静态静态页面。</p>
<p>第一，在 <code>page.php </code>中的 <code>&lt;?php the_content(); ?&gt; </code> 下输入以下代码：</p>
<p><code>&lt;?php link_pages(’&lt;p&gt;&lt;code&gt;Pages:&lt;/strong&gt; ‘, ‘&lt;/p&gt;’, ‘number’); ?&gt;</code></p>
<p>和</p>
<p><code>&lt;?php edit_post_link(’Edit’, ‘&lt;p&gt;’, ‘&lt;/p&gt;’); ?&gt;</code></p>
<p>第二，从 <code>page.php</code> 中移除 <code>postmetadata</code> 代码。结果如下：</p>
<p><img src="http://pic.fairyfish.com//2007/07/page-php.gif" alt="page-php.gif" /></p>
<p>第三，在 <code>page.php</code> 中移除 <code>posts_nav_link()</code> 或者<strong>导航</strong>模块。</p>
<p><img src="http://pic.fairyfish.com//2007/07/remove-navigation.gif" alt="remove-navigation.gif" /></p>
<p><strong>刚才发生了什么</strong>？</p>
<p>第一行代码是用于显示页面的分页链接。</p>
<p><img src="http://pic.fairyfish.com//2007/07/nextpage.gif" alt="nextpage.gif" /></p>
<p>举个例子，编辑 <strong>About</strong> 页面。根据我的屏幕截图增加代码：</p>
<p><img src="http://pic.fairyfish.com//2007/07/add-nextpage.gif" alt="add-nextpage.gif" /></p>
<p>当你想把一个非常长的页面分成几个页面的时候，这是非常有用的。</p>
<p>第二行代码是用于显示可以用来编辑静态页面的<strong>编辑</strong>链接。</p>
<p>通常页面是没有分类，并且通常不想给他们显示创建时间，所以需要去移除 postmetadata。同样要移除 <code>posts_nav_link()</code> 代码因为<strong>静态页面</strong>不会显示<strong>后一页</strong>和<strong>前一页</strong>的链接。</p>
<p>保存 <code>page.php </code>文件并关闭它。</p>
<h2>第5步：定制 <code>single.php</code></h2>
<p>点击一个日志的标题去阅读日志其余部分就会带你到单篇日志查看模式。<code>single.php</code> 模板就是用于处理查看单篇日志时的外观。</p>
<p>在 <code>single.php</code> 中的 <code>&lt;?php the_content() ?&gt; </code>下输入：</p>
<p><code>&lt;?php link_pages(’&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; ‘, ‘&lt;/p&gt;’, ‘number’); ?&gt;</code></p>
<p>是的，这是相同的用于编码页面的分页链接的代码。同样我们也可以把日志分成多篇子日志。</p>
<p>第二，在 <strong>postmetadata</strong> 区域，移除 <code>&lt;?php comments_popup_link(); ?&gt;</code> 函数和前面的 <strong>&lt;br /&gt;</strong> 标签。不要移除整个 <code>postmetadata</code>。</p>
<p>移除了留言链接函数是因为在单篇日志查看模式下留言链接函数是不起作用，所以要在 <code>singel.php</code> 文件中移除它。只有管理员可见的编辑链接，在 <strong>BR </strong>标签的左边。你不想跳过一行才能看到这个本来你可以在右边看到链接？这就是移除 <strong>BR</strong> 标签的原因。</p>
<p>第三，用以下代码取代 <code>&lt;?php posts_nav_link(); ?&gt;</code>：</p>
<p><code>&lt;?php previous_post_link(’? %link’) ?&gt; &lt;?php next_post_link(’ %link ?’) ?&gt;</code></p>
<p>在前面，存档，分类和搜索页面，我们使用 <code>posts_nav_link()</code> 函数去调用<strong>后一页</strong>和<strong>前一页</strong>的链接。对于查看单一日志的页面，它是没有后一页和前一页链接的，我们可以使用 <strong>previous_post_link()</strong> 和 <code>next_post_link()</code> 函数去调用前一篇日志和后一篇日志的链接。</p>
<p>保存 <code>single.php</code> 文件，到某篇日志下查看在导航区域的不同。</p>
<h2>课程回顾</h2>
<ul>
<li>创建了四个新的文件或者或者子模板：<a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/archive-lesson-15.txt">archive.php</a>，search.php，<a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/page-lesson-15.txt">page.php</a> 和 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/single-lesson-15.txt">single.php</a>。</li>
<li><code>archive.php</code> 和 <code>search.php</code> 模板文件是相同的。</li>
<li><strong>Pages</strong> （和日志不同）是没有分类的，他们同样没有<strong>后一页</strong>和<strong>前一页</strong>的链接。</li>
<li><code>Single.php</code> 不会显示留言链接（被 <code>comments_popup_link()</code> 函数调用）并且他不用 <code>posts_nav_link()</code> 去调用导航链接。</li>
</ul>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2315%EF%BC%9A%E5%AD%90%E6%A8%A1%E6%9D%BF%E6%96%87%E4%BB%B6&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #15：子模板文件">收藏本文</a>
 / <a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/#comments" title="WordPress 主题教程 #15：子模板文件">16条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><strong>WordPress 主题教程 #15：子模板文件</strong></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1174406079&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F07%2F11%2Fwp-theme-lesson-15-sub-template-files%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2315%EF%BC%9A%E5%AD%90%E6%A8%A1%E6%9D%BF%E6%96%87%E4%BB%B6&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #14：底部和拆分 Index</title>
		<link>http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/</link>
		<comments>http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 08:57:09 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/</guid>
		<description><![CDATA[底部和拆分 Index是从零开始创建 WordPress 主题系列教程的第十四篇，这篇我们完成对主题的样式化和开始把 index.php 文件分成多个小文件。]]></description>
			<content:encoded><![CDATA[<p><strong>底部和拆分 Index</strong>是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第十四篇，这篇我们完成对主题的样式化和开始把 <strong>index.php</strong> 文件分成多个小文件。在这篇中，首先要对 <strong>style.css</strong> 文件进行修改，然后把 <strong>index.php</strong> 分成一些新的文件。<br />
<span id="more-892"></span></p>
<p>打开 XAMPP，主题文件夹，Firefox，IE，index.php 和 style.css。</p>
<h2>第1步：样式化 footer</h2>
<p>给 <strong>footer</strong> DIV 增加 <strong>10px</strong> 顶部填充。你还记得如何增加填充？这次我不提供代码。</p>
<h2>第2步：设置 footer P 的行距</h2>
<p>给 footer 里的所有的 <strong>P</strong> 标签 <strong>18px</strong> 行距。那是 <strong>#footer p{}</strong>.。（今天关于 CSS 的就这么多。）</p>
<h2>第3步：<code>header.php</code></h2>
<ul>
<li>创建一个新文件，把它命名为 <strong>header.php</strong>。</li>
<li>在 <strong>index.php</strong> 文件中，把 <strong>header</strong> DIV 及以上所有东西都拷贝到 <strong>header.php</strong> 文件中。</li>
</ul>
<p><img src="http://pic.fairyfish.com/2007/07/create-headerphp.gif" alt="create-headerphp.gif" /></p>
<p><img src="http://pic.fairyfish.com/2007/07/copy-header.gif" alt="copy-header.gif" /></p>
<p>这是我的 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/header-lesson-14.txt">header.php</a> 文件。不要从我的这里拷贝，从你自己的 <strong>index.php</strong> 文件拷贝。</p>
<h2>第4步：在 <code>index.php</code> 中导入 <code>header.php</code></h2>
<p>为了使所有从 <strong>index.php</strong> 中拷出的内容依然在 <strong>index.php</strong> 文件中，输入以下代码：</p>
<p><strong>&lt;?php get_header(); ?&gt;</strong></p>
<p><img src="http://pic.fairyfish.com/2007/07/get-header.gif" alt="get-header.gif" /></p>
<p>这是个 WordPress 主题系统特别用来导入 <strong>header.php</strong> 文件的函数，而不用使用 PHP 的函数：<strong>&lt;?php include (TEMPLATEPATH . ‘/header.php’); ?&gt;</strong>.</p>
<p>保存并刷新浏览器，你应该看到没有变化。如果你的改变破坏了主题，那么肯定有错误。</p>
<h2>第4步：<code>sidebar.php</code></h2>
<ul>
<li>和第4步一样，更多相同的事情。这次，创建 <strong>sidebar.php</strong> 文件。</li>
<li>把 <strong>index.php</strong> 文件中的 <strong>Sidebar</strong> DIV 从开始到结尾都复制到 <strong>sidebar.php</strong> 文件中。</li>
<li>那么，在 <strong>index.php</strong> 文件，将其取代为：<strong>&lt;?php get_sidebar(); ?&gt;</strong>.</li>
<li>保存并刷新浏览器，再一次，你应该看到没有变化。</li>
<li>这是我的 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/sidebar-lesson-14.txt">sidebar.php</a> 文件。</li>
</ul>
<p><img src="http://pic.fairyfish.com/2007/07/get-sidebar.gif" alt="get-sidebar.gif" /></p>
<h2>第5步：<code>footer.php</code></h2>
<ul>
<li>为 <code>footer.php</code> 重复上面的步骤。</li>
<li>这是我的 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/footer-lesson-14.txt">footer.php</a> 文件。</li>
</ul>
<p><img src="http://pic.fairyfish.com/2007/07/get-footer.gif" alt="get-footer.gif" /></p>
<h2>教程回顾</h2>
<ul>
<li>创建了三个新文件：<strong>header.php</strong>，<strong>sidebar.php</strong> 和 <strong>footer.php</strong>。</li>
<li>使用了三个新的函数：<strong>get_header()</strong>，<strong>get_sidebar()</strong> 和 <strong>get_footer()</strong>。</li>
<li>下面是这节课结束之后的文件：<a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/index-lesson-14.txt">index</a>，<a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/style-lesson-14.txt">style</a>，<a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/header-lesson-14.txt">header</a>，<a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/sidebar-lesson-14.txt">sidebar</a>，<a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/footer-lesson-14.txt">footer</a>。</li>
</ul>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2314%EF%BC%9A%E5%BA%95%E9%83%A8%E5%92%8C%E6%8B%86%E5%88%86+Index&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #14：底部和拆分 Index">收藏本文</a>
 / <a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/#comments" title="WordPress 主题教程 #14：底部和拆分 Index">25条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><strong>WordPress 主题教程 #14：底部和拆分 Index</strong></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=46067856&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F07%2F09%2Fwp-theme-lesson-14-footer-and-dividing-index%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2314%EF%BC%9A%E5%BA%95%E9%83%A8%E5%92%8C%E6%8B%86%E5%88%86+Index&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #13：样式化侧边栏</title>
		<link>http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/</link>
		<comments>http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 08:41:38 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/</guid>
		<description><![CDATA[样式化侧边栏是从零开始创建 WordPress 主题系列教程的第十三篇，这篇主要讲解如何样式化侧边栏里面的所有元素。]]></description>
			<content:encoded><![CDATA[<p>样式化侧边栏是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第十三篇，这篇主要讲解如何样式化侧边栏里面的所有元素，在对侧边栏样式化之后，这系列教程就将差不多结束了。<br />
<span id="more-888"></span></p>
<p>打开 XAMPP，主题文件夹，Firefox，IE 和 style.css 文件。</p>
<h2>第1步：样式化侧边栏的无序列表</h2>
<p>在 <strong>.sidebar{} </strong>下输入：</p>
<p><strong>.sidebar ul{<br />
list-style-type: none;<br />
margin: 0;<br />
padding: 0 10px 0 10px;<br />
}</strong></p>
<p>现在已经为侧边栏样式化父级无序列表（UL）标签。所有的子 UL 或者内嵌的 UL 将会击继承同样的样式。在这里，它是无列表样式，零空白和10像素的填充。</p>
<p>如下所示：</p>
<p><img src="http://pic.fairyfish.com/2007/07/inheritance.gif" alt="inheritance.gif" /></p>
<p>第二级的（或内嵌的） UL 继承了第一级 UL 的样式。如果你给了第一级 UL 应用了边框，第二级的 UL 同样也会有个边框。</p>
<p>保存并刷新就可以看到列表条目现在已经没有前面的圆点了。</p>
<p><img src="http://pic.fairyfish.com/2007/07/no-top-padding.gif" alt="no-top-padding.gif" /></p>
<p>注意下你是如何增加顶部和底部填充的。</p>
<h2>第2步：给 LI 添加填充</h2>
<p>在 <strong>.sidebar ul{}</strong> 下输入：</p>
<p><strong>.sidebar ul li{<br />
padding: 10px 0 10px 0;<br />
}</strong></p>
<p>这是现在的填充：</p>
<p><img src="http://pic.fairyfish.com/2007/07/top-padding.gif" alt="top-padding.gif" /></p>
<p>在进行这步之前，<strong>搜索框</strong>和<strong>日历</strong>之间以及<strong>日历</strong>和<strong>页面</strong>之间是没有空间，如何给这些模块之间添加空间呢，我们需要给 <strong>.sidebar ul li{}</strong>  添加的10像素顶部和底部填充。<strong>为什么不在第一个地方的 UL 标签增加10像素的填充呢？</strong>这样的话将会有20像素的顶部填充和20像素的底部填充。如果你还是不明白，那么就去给 <strong>.sidebar ul{}</strong> 增加顶部和底部填充，就会看到问题的所在了。</p>
<h2>第3步：样式化侧边栏下的子标题</h2>
<p>在 <strong>.sidebar ul li{} </strong>下输入：</p>
<p><strong>.sidebar ul li h2{<br />
font-family: Georgia, Sans-serif;<br />
font-size: 14px;<br />
}</strong></p>
<p>还记得我们已经样式化了在 .post{} 下的子标题，但是这个是不会对侧边栏的子标题起作用的，因为前面我们仅仅样式化在 .post{} 下的子标题？现在我们是在样式化侧边栏下的子标题，结果如下：</p>
<p><img src="http://pic.fairyfish.com/2007/07/h2-and-unnecessary-padding.gif" alt="h2-and-unnecessary-padding.gif" /></p>
<p>这就是我的<strong>页面</strong>链接的样子。可能默认安装下的 WordPrss 只有一个链接：<strong>About</strong>。我的离线 WordPress 增加了多重页面链接是为了测试最低级别的链接看起的样子，注意到我已圈出在底部有不必要额外的填充，这是一个非常好的关于样式继承的例子。这里不是10像素而是20。</p>
<p>因为你给 <strong>.sidebar ul li{}</strong> 增加了填充，为了解决这个问题，直行第4步。</p>
<h2>第4步：清除子 UL 下的 LI 填充</h2>
<p>在 <strong>.sidebar ul li h2{}</strong> 下输入：</p>
<p><strong>.sidebar ul ul li{<br />
padding: 0;<br />
}</strong></p>
<p>在 <strong>.sidebar ul ul li{}</strong> 中连续的 <strong>UL</strong> 指明了我们是在定义第二级别的 <strong>LI</strong>s。再说一次，当所有的值都为 0 的时候，你不需要 px 这个后缀。</p>
<p>结果如下：</p>
<p><img src="http://pic.fairyfish.com/2007/07/ul-ul-li.gif" alt="ul-ul-li.gif" /></p>
<p>行距太近了，所以我们把行高改成 24px。</p>
<p>增加 <strong>line-height: 24px;</strong> 到 <strong>.sidebar ul ul li{}</strong>.</p>
<p><img src="http://pic.fairyfish.com/2007/07/line-height.gif" alt="line-height.gif" /></p>
<p>另外，如果你在 IE 下，搜索框下有多出了额外的空白，在下面增加 form：</p>
<p>body, h1, h2, h3, h4, h5, h6, address, blockquote, dd, dl, hr, p{<br />
margin: 0;<br />
padding: 0;<br />
}</p>
<p>改成：</p>
<p>body, h1, h2, h3, h4, h5, h6, address, blockquote, dd, dl, hr, p<strong>, form</strong>{<br />
margin: 0;<br />
padding: 0;<br />
}</p>
<h2>第5步（可选的）：扩展日历宽度到整个侧边栏</h2>
<p>执行这一步，如果你想让你的日历的数据能够扩展并覆盖整个侧边栏的宽度。当前你的日历应该是这样的：</p>
<p><img src="http://pic.fairyfish.com/2007/07/calendar1.gif" alt="calendar1.gif" /></p>
<p>为了样式化日历，找出在里面的标签和这个便签的名字或者 id。 <strong>查看 &gt; 页面源代码或者源代码</strong>，侧边栏是在底部，所以到源代码的底部查找 Calendar。</p>
<p><img src="http://pic.fairyfish.com/2007/07/caledar-id.gif" alt="caledar-id.gif" /></p>
<p>现在我们知道日历是在一个 <strong>TABLE</strong> 标签中并以 <strong>wp-calendar</strong> 作为 <strong>id</strong>。那么如何在 <strong>style.css</strong> 文件中锁定 <strong>wp-calendar table </strong>呢？</p>
<p>答案是 <strong>table#wp-calendar{}</strong>。为什么？早前，你学了使用 # 号当样式化使用 <strong>id</strong> 而不是 <strong>class</strong> 命名的 DIV。在这里，是 <strong>table</strong> 而不是 <strong>DIV</strong>，跟着是 <strong>id</strong> 的值，<strong>wp-calendar</strong>。</p>
<p>如果仅仅 #wp-calendar{} 也是可以的因为它是唯一的而且 WordPress 不会使用 #wp-calendar 给别的标签。但是你应该试着特定化当能够的时候。如果要更加特定化 使用 <strong>.sidebar ul li table#wp-calendar{}</strong>，想更加特定化？好的，使用 <strong>.sidebar ul li#calendar table#wp-calendar{}</strong>. 因为列表条目（LI）包含日历子标题和一个 <strong>id </strong>被命名为 calendar 的日历表格。</p>
<p>现在你知道可以使用什么，如何怎么扩展 table，给表格加上 <strong>width: 100%;</strong> 。</p>
<p>在 <strong>.sidebar ul ul li{}</strong> 下输入：</p>
<p>table#wp-calendar{<br />
width: 100%;<br />
}</p>
<p>保存和刷新，结果如下：</p>
<p><img src="http://pic.fairyfish.com/2007/07/calendar-width.gif" alt="calendar-width.gif" /></p>
<p><strong>width: 100%;</strong> 因为你想日历表格适应到侧边栏的宽度，无论你把侧边栏改成多少像素。</p>
<p>可能这样看起来并不好，但是我相信你已经知道如何改进。日历需要更多的样式去看起来更好。<strong>技巧：</strong>再次查看源代码，找出在 <strong>TABLE</strong> 下的哪个标签你可以样式化。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2313%EF%BC%9A%E6%A0%B7%E5%BC%8F%E5%8C%96%E4%BE%A7%E8%BE%B9%E6%A0%8F&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #13：样式化侧边栏">收藏本文</a>
 / <a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/#comments" title="WordPress 主题教程 #13：样式化侧边栏">13条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><strong>WordPress 主题教程 #13：样式化侧边栏</strong></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1606364243&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F07%2F07%2Fwp-theme-lesson-13-styling-sidebar%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2313%EF%BC%9A%E6%A0%B7%E5%BC%8F%E5%8C%96%E4%BE%A7%E8%BE%B9%E6%A0%8F&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #12：日志样式化和其他杂项</title>
		<link>http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/</link>
		<comments>http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 18:05:52 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/</guid>
		<description><![CDATA[日志样式化和其他杂项是从零开始创建 WordPress 主题系列教程的第十二篇，这篇主要讲解如何样式日志。]]></description>
			<content:encoded><![CDATA[<p><strong>日志样式化</strong>和其他杂项是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第十二篇，这篇主要讲解如何样式日志，这篇不需要 <code>index.php</code>，<br />
<span id="more-860"></span></p>
<p>打开<strong>Xampp Control</strong>，<strong>theme 文件夹</strong>，<strong>Firefox</strong>，<strong>Internet Explorer</strong> 和 <strong>style.css</strong> 文件。</p>
<h2>第1步：Reset CSS</h2>
<p>在 <strong>style.css</strong> 文件中的 <strong>body{}</strong> 上面输入以下代码来处理大部分页边空白和填充：</p>
<p><strong>body, h1, h2, h3, h4, h5, h6, blockquote, p{<br />
margin: 0;<br />
padding: 0;<br />
}</strong></p>
<ul>
<li>这里我们使用的是 <strong>margin: 0;</strong> 而不是 <strong>margin: 0 0 0 0;</strong>。因为所有的值都是一样的话，只用一个数字就够了，对于填充的设置也是一样的。</li>
<li>保存，刷新 Firefox 和 IE。接下来我们可以增加空白和填充到需要的地方。</li>
</ul>
<h2>第2步：样式化 H1 标题</h2>
<p>在 <strong>body{}</strong> 之后输入以下代码：</p>
<p><strong>h1{<br />
font-family: Georgia, Sans-serif;<br />
font-size: 24px;<br />
padding: 0 0 10px 0;<br />
}</strong></p>
<ul>
<li><strong>font-family: Georgia, Sans-seriff;</strong> 把 H1 标题的字体从 Arial 改成 Georgia。如果没有 Georgia，网页就会寻找 Sans-serif；</li>
<li><strong>font-size: 24px;</strong> 我们在 <strong>body{}</strong> 中把字体设置为 <strong>12px</strong>，<strong>H1</strong> 和 <strong>H2</strong> 标签是不会遵守的。这就是因为标题标签遵循他们自己的规则。为了控制他们，我们需要特别的去样式化它们。</li>
<li><strong>padding: 0 0 10px 0;</strong> 意思是 10 像素的底部填充。这是为了在博客的标题和描述之间增加空间。</li>
</ul>
<p>保存，刷新，结果如下：</p>
<p><img src="http://pic.fairyfish.com/2007/06/h1-styled.gif" alt="h1-styled.gif" /></p>
<h2>第3步：样式化日志</h2>
<p>在 <strong>#container{}</strong>下面输入以下代码：（可以在输入每块代码之后，保存并刷新去查看其中的变化。）</p>
<p><strong>.post{<br />
padding: 10px 0 10px 0;<br />
}</strong></p>
<p>（给每个 class 名字为 <strong>post</strong> 的 DIV 增加 10 像素的顶部和底部空白。）</p>
<p><strong>.post h2{<br />
font-family: Georgia, Sans-serif;<br />
font-size: 18px;<br />
}</strong></p>
<p>（.post h2 不是一般的 CSS 规则。他是特别样式化在 class 名为 post 的 DIV 中的 H2 子标题。在侧边栏中的 H2 子标题就不受影响。）</p>
<p><strong>.entry{<br />
line-height: 18px;<br />
}</strong></p>
<p>（设置 entry DIV 中行距。）</p>
<h2>第4步：设置日志段落填充</h2>
<p>在 <strong>a:hover{}</strong> 下输入以下代码：</p>
<p><strong>p{<br />
padding: 10px 0 0 0;<br />
}</strong></p>
<p>（给每个段落标签增加 10 像素的顶部填充。)</p>
<h2>第5步：样式化日志杂项</h2>
<p>在 <strong>.entry{}</strong> 下面输入：</p>
<p><strong>p.postmetadata{<br />
border-top: 1px solid #ccc;<br />
margin: 10px 0 0 0;<br />
}</strong></p>
<p>对于 <strong>postmetadata</strong> 这个段落便签，给它增加一个灰色的边框和10像素顶部空白。</p>
<p><strong>border-top</strong> 意思是仅仅顶部边框 <strong>border-left</strong> 意思是仅仅左边边框，等等。 如果只是单独的 <strong>border</strong>，没有 <strong>-top</strong>，<strong>-right</strong>，<strong>-bottom</strong> 或者 <strong>-left</strong> 则意味着所有的边框。如 <strong>border: 1px solid #ccc;</strong> 意思为所有的四边都有1像素的灰色的边框。</p>
<h2>第6步：样式化导航栏</h2>
<p>在 <strong>p.postmetadata{}</strong> 下输入：</p>
<p><strong>.navigation{<br />
padding: 10px 0 0 0;<br />
font-size: 14px;<br />
font-weight: bold;<br />
line-height: 18px;<br />
}</strong></p>
<p>对于 <strong>Next page</strong> 和 <strong>Previous page</strong> 链接外面的的 <strong>navigation</strong> DIV 标签，我们</p>
<ul>
<li>增加了一个10像素的顶部填充。</li>
<li>把字体大小改成14像素。</li>
<li>把字体改成粗体。</li>
<li>把行高增加到18像素。</li>
</ul>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2312%EF%BC%9A%E6%97%A5%E5%BF%97%E6%A0%B7%E5%BC%8F%E5%8C%96%E5%92%8C%E5%85%B6%E4%BB%96%E6%9D%82%E9%A1%B9&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #12：日志样式化和其他杂项">收藏本文</a>
 / <a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/#comments" title="WordPress 主题教程 #12：日志样式化和其他杂项">8条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><strong>WordPress 主题教程 #12：日志样式化和其他杂项</strong></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1006157961&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F06%2F29%2Fwp-theme-lesson-12-post-formatting-and-miscellaneous%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2312%EF%BC%9A%E6%97%A5%E5%BF%97%E6%A0%B7%E5%BC%8F%E5%8C%96%E5%92%8C%E5%85%B6%E4%BB%96%E6%9D%82%E9%A1%B9&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #11：宽度和布局</title>
		<link>http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/</link>
		<comments>http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 17:55:14 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/</guid>
		<description><![CDATA[宽度和布局是是从零开始创建 WordPress 主题系列教程的第十一篇，这篇将介绍如何设置每个 DIV 的宽度和布局排版，并且也会展示如何让主题显示正确，并同时在 Firefox 和 IE 下兼容，显示一致。]]></description>
			<content:encoded><![CDATA[<p><strong>宽度和布局</strong>是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第十一篇，这篇将介绍如何设置每个 DIV 的宽度和布局排版，并且也会展示如何让主题显示正确，并同时在 Firefox 和 IE 下兼容，显示一致。<br />
<span id="more-722"></span></p>
<p>在我们开始之前，打开 <strong>Xampp Control</strong>，<strong>主题文件夹</strong>，<strong>Firefox</strong> 浏览器，<strong>IE</strong> 浏览器，<strong>index.php</strong>和<strong>style.css</strong>这两个文件。</p>
<h2>第1步：设置页面总体宽度</h2>
<p>现在我们首先要确定的是主题的总体宽度。我们使用 750px；主题的大小取决于博客绝大多数访问者的屏幕分辨率。需要避免的是使用过大宽度的 的主题，如果博客的读者都大多数使用 800px × 600px 的屏幕，这样的话，如果是使用 900px 宽的主题将会有 100多像素超出他们的屏幕，显然这是对用户很不友好的。</p>
<p><strong>不管怎样，我们怎么样把主题的总体宽度设置为 750px 呢？</strong></p>
<p>我们需要把现在主题中的所有的东西（header，container，sidebar 和 footer）放入一个 750px 的 DIV 标签中。</p>
<p>在 <strong>&lt;body&gt;</strong> 之后增加：<strong>&lt;div id=”wrapper”&gt;</strong></p>
<p>在 <strong>&lt;/body&gt;</strong> 之前增加：<strong>&lt;/div&gt;</strong></p>
<p>在 <strong>style.css</strong> 文件中输入以下代码：<br />
<strong>#wrapper{<br />
margin: 0 auto 0 auto;<br />
width: 750px;<br />
text-align: left;<br />
}</strong></p>
<p>在 CSS，<strong>#</strong> 号是通过 <strong>id</strong> 来定位页面中的元素，而点号是通过 <strong>class</strong> 来定位页面中的元素，如果你的代码是 <strong>&lt;div class=”wrapper”&gt;</strong>，那么就应该用 <strong>.wrapper</strong> 来替代 <strong>#wrapper</strong> 去定位 <strong>wrapper</strong> 这个 DIV 标签。</p>
<p>同时保存 <code>index.php</code> 和 <code>style.css</code> 文件。刷新 Firefox 和 IE 浏览器（按 F5）查看所做的改动。</p>
<p><strong>详细解释：</strong></p>
<ul>
<li><strong>margin: 0 auto 0 auto;</strong> 意思是（注意顺序）：<strong>0上页边空白</strong>，<strong>自动右页面空白</strong>，<strong>0下页边空白</strong>和<strong>自动左页面空白</strong>。从现在开始，记得设置左右页边空白为自动将使得居中对齐。</li>
<li><strong>width: 750px;</strong> 显而易见是 750 像素。</li>
<li><strong>text-align: left;</strong> 是让 <strong>wrapper DIV</strong> 中的文本向左对齐因为我们等下要要将 <strong>body{ text-align: left;}</strong> 改成 <strong>text-align: center;</strong></li>
</ul>
<h2>第2步：自动页面居中</h2>
<p>把 <strong>body{}</strong> 中的 <strong>text-align: left;</strong> 改成 <strong>text-align: center;</strong>。</p>
<p><strong>为什么</strong>？（我假设你使用的是 Firefox 和 Internet Explorer 6）。你的布局可能你看起来是正确的，但对于使用早前版本的 IE 用户可能不正确。还记得设置左边和右边的页边空白为自动是居中吗？但是这并不是对所有的 IE 都适用，所以 <strong>body{ text-align: center; }</strong> 是让 <strong>wrapper</strong> DIV 居中在旧版本 IE 的一种解决方案。</p>
<p>（随便说一下，在 Firefox 和 IE 中文本大小是不同的，我们稍后解决。）</p>
<h2>第3步：设置 header 宽度和布局</h2>
<p>让 <strong>Header</strong> 浮到左边并且设置它的宽度为 750px：</p>
<p><strong>#header{<br />
float: left;<br />
width: 750px;<br />
}</strong></p>
<h2>第4步：设置 Container 宽度和布局</h2>
<p>让 <strong>Container</strong> 浮到左边并且宽度为 500px：</p>
<p><strong>#container{<br />
float: left;<br />
width: 500px;<br />
}</strong></p>
<h2>第5步：设置 Sidebar 宽度和布局</h2>
<p>让 <strong>Sidebar</strong> 浮到左边，宽度为240px，并且给它灰色的背景：</p>
<p><strong>.sidebar{<br />
float: left;<br />
width: 240px;<br />
background: #eeeeee;<br />
}</strong></p>
<p>#ffffff 是白色而<strong>background: #eeeeee;</strong> 是非常浅的灰色。我们给侧边栏增加一个背景颜色只是去查看当增加剩下的 10 像素之后的不同之处。</p>
<h2>第6步：设置 Footer 的宽度和布局</h2>
<p>让 <strong>Footer</strong> 浮到左边，左右两边都没有东西，并且宽度为：750px：</p>
<p><strong>#footer{<br />
clear: both;<br />
float: left;<br />
width: 750px;<br />
}</strong></p>
<p><strong>Header</strong> 和 <strong>Footer</strong> 的样式有什么区别呢？答案是 <strong>footer{}</strong> 中有 <strong>clear: both;</strong>。它在那儿使得 Footer 不能和它上面的东西（如 Sidebar 或者 Container）连接起来。</p>
<p><strong>保存并刷新浏览器。</strong></p>
<h2>第7步：给侧边栏增加其余的 10 像素</h2>
<p>给侧边栏增加其余的 10 像素的页边空白。现在侧边栏的  CSS 应该是：</p>
<p>.sidebar{<br />
float: left;<br />
width: 240px;<br />
background: #eeeeee;<br />
<strong>margin: 0 0 0 10px;</strong><br />
}</p>
<p>保存并刷新浏览器去查看 10 像素的空白增加到侧边栏的左边了。</p>
<p><strong>margin: 0 0 0 10px;</strong> 具体的意思是：上边空白为0，右边空白为0，底部空白为0，左边空白为10像素。当大小为0的时候，<strong>px</strong> 单位不是必需的。</p>
<h2>第8步（额外的步骤）：修正 IE 的双倍页边距 bug</h2>
<p><strong>Internet Explorer</strong> 有个双倍页边距的 bug，这样在 IE 下，我们的页面距就是 20像素，20像素的页边距可能会破坏布局并把侧边栏挤到页面的底部，因为一个20像素的页边距使得 Container 和 Sidebar 的宽度之和为 760px 而不是 750px。为了解决这个问题，增加 <strong>display: inline;</strong> 到侧边栏。现在你的侧边栏应该是：</p>
<p>.sidebar{<br />
float: left;<br />
width: 240px;<br />
background: #eeeeee;<br />
margin: 0 0 0 10px;<br />
<strong>display: inline;</strong><br />
}</p>
<p>这里是现在的 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/index-lesson-11.txt">index</a> 和 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/style-lesson-11.txt">style</a> 文件的内容。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2311%EF%BC%9A%E5%AE%BD%E5%BA%A6%E5%92%8C%E5%B8%83%E5%B1%80&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #11：宽度和布局">收藏本文</a>
 / <a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/#comments" title="WordPress 主题教程 #11：宽度和布局">35条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1856605889&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F06%2F21%2Fwp-theme-lesson-11-widths-and-floats%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2311%EF%BC%9A%E5%AE%BD%E5%BA%A6%E5%92%8C%E5%B8%83%E5%B1%80&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #10：十六进制颜色代码和样式化链接</title>
		<link>http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/</link>
		<comments>http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 17:04:46 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/</guid>
		<description><![CDATA[十六进制颜色代码和样式化链接是从零开始创建 WordPress 主题系列教程的第十篇。这篇继续昨天介绍 CSS 的课程，我们今天将介绍如何着色和十六进制颜色代码。]]></description>
			<content:encoded><![CDATA[<p><strong>十六进制颜色代码和样式化链接</strong>是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第十篇。这篇继续昨天介绍 CSS 的课程，我们今天将介绍如何<strong>着色</strong>和<strong>十六进制颜色代码</strong>。<br />
<span id="more-702"></span></p>
<p>颜色属性，跟着的是一个十六进制代码，是用于给文本上色。如 <strong>body { color: #000000;}</strong> 意思是你页面 body 内所有文本将是黑色的。</p>
<p>背景颜色属性，跟着的是一个十六进制代码，是给除背景上色。如 <strong>body{ background: #ffffff; }</strong> 意思是为 body 上白色背景。</p>
<h2>十六进制代码</h2>
<ul>
<li>每个十六进制代码前都有 # 号，然后跟着六位数字。这些数字的范围是从 <strong>#ffffff</strong>（白色）到 <strong>#000000</strong>（黑色）。</li>
<li>#ffffff， #eeeeee， #dddddd， #cccccc， #bbbbbb， #aaaaaa， #999999， #888888， #777777， #666666， #555555， #444444， #333333， #222222， #111111</li>
<li>前两位表示红色，第三和第四代表绿色，而最后两位代表蓝色。<strong>#ff0000</strong> 是红色（red）。<strong>#550000</strong> 是暗红色（dark red）。 <strong>#220000</strong> 是更黑色的红色（darker red）。 <strong>#00ff00</strong> 是绿色（green）。 <strong>#0000ff</strong> 是蓝色（blue）。那么哪个十六进制代码是黄色呢？ <strong>#ffff00</strong> 就是黄色（yellow）。 <strong>#ff00ff</strong> 是紫色（violet）。</li>
</ul>
<h2>第1步：添加链接颜色</h2>
<p>在 <strong>body{ }</strong> 选择器下输入以下代码：</p>
<p><strong>a:link, a:visited{<br />
text-decoration: underline;<br />
color: #336699;<br />
}</strong></p>
<p><img src="http://pic.fairyfish.com/2007/06/style-links.gif" alt="style-links.gif" /></p>
<ul>
<li><strong>这些代码是干吗用的？</strong>，给所有的链接都加上下划线的（<strong>text-decoration: underline;</strong>）和上了蓝色（<strong>color: #336699;</strong>）。这是不是纯正的蓝色，但它确实是蓝色是因为最后两个数字（代表蓝色）是最高值的数字。</li>
<li><strong>a:link</strong> 用于样式化链接。当你想把一个词转变为链接的时候，用什么实现呢？使用 <strong> &lt;a&gt;</strong> 和 <strong>&lt;/a&gt;</strong> 这对标签，因此样式化链接就是样式化 <strong>a:link</strong>。</li>
<li><strong>a:visited</strong> 用于样式化已经访问过的链接。</li>
<li>另外一种输入方式：<br />
<strong>a:link{<br />
text-decoration: underline;<br />
color: #336699;<br />
}</strong></p>
<p>和</p>
<p><strong>a:visited{<br />
text-decoration: underline;<br />
color: #336699;<br />
}</strong></li>
<li>当给<strong>a:link</strong> 和 <strong>a:visited</strong>这两个选择器应用相同的 <strong>text-decoration: underline;</strong> 和 <strong>color: #336699;</strong> 这两个属性的时候。可以把它么你放在一起，使用<strong>逗号</strong>来区分。</li>
</ul>
<h2>第2步：添加链接悬停颜色</h2>
<p>在 <strong>a:link, a:visited{ }</strong> 下输入以下代码：</p>
<p><strong>a:hover{<br />
text-decoration: none;<br />
}</strong></p>
<p><strong>这些代码是干吗用的呀？</strong> 当把指针移到链接上面时候下划线消失。</p>
<p>如果不想在默认情况下有下划线而是在当把指针移到链接上面的时候才出现下划线，那么就在 <strong>a:link</strong> 和 <strong>a:hover</strong> 之间交换下 <strong>text-decoration:</strong> 的值。</p>
<p>如果你想更改你链接悬停时的颜色，那么就增加 <strong>color:</strong> 和任何你想要的十六进制代码，如：</p>
<p>a:hover{<br />
text-decoration: none;<br />
<strong>color: #ff0000;</strong><br />
}</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2310%EF%BC%9A%E5%8D%81%E5%85%AD%E8%BF%9B%E5%88%B6%E9%A2%9C%E8%89%B2%E4%BB%A3%E7%A0%81%E5%92%8C%E6%A0%B7%E5%BC%8F%E5%8C%96%E9%93%BE%E6%8E%A5&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">收藏本文</a>
 / <a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/#comments" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">3条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><strong>WordPress 主题教程 #10：十六进制颜色代码和样式化链接</strong></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=442870328&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F06%2F17%2Fwp-theme-lesson-10-hex-codes-and-styling-links%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%2310%EF%BC%9A%E5%8D%81%E5%85%AD%E8%BF%9B%E5%88%B6%E9%A2%9C%E8%89%B2%E4%BB%A3%E7%A0%81%E5%92%8C%E6%A0%B7%E5%BC%8F%E5%8C%96%E9%93%BE%E6%8E%A5&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #9：Style.css 和 CSS 介绍</title>
		<link>http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/</link>
		<comments>http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:49:44 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/</guid>
		<description><![CDATA[Style.css 和 CSS 介绍是从零开始创建 WordPress 主题系列教程的第九篇，学习 CSS 最好的方法就是去使用它，不像 XHTML 和 PHP 需要接触模板的核心文件，同样不要需要理解任何基本概念，只要去用它，通过试用和修正错误是可以让你快速学会。]]></description>
			<content:encoded><![CDATA[<p>Style.css 和 CSS 介绍是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第九篇，学习 CSS 最好的方法就是去使用它，不像 XHTML 和 PHP 需要接触模板的核心文件，同样不要需要理解任何基本概念，只要去用它，通过试用和修正错误是可以让你快速学会。<br />
<span id="more-697"></span></p>
<p>我们现在已经在 <code>style.css</code> 文件有些内容，让我们先来看看这部分内容是干什么的？</p>
<p><img src="http://pic.fairyfish.com/2007/06/theme-info.gif" alt="theme-info.gif" /></p>
<ul>
<li>第一行显而易见就是主题的名字。</li>
<li>第二行是这个主题的地址，如果你的主题只是私用的而不准备发布的话，那就不用管它了。</li>
<li>第三行是主题的描述。</li>
<li>第四行是版本号，这是非常重要的，特别是当你公开发布你主题新版本的时候。</li>
<li>第五和第六行分别是主题作者的名字和主页。</li>
</ul>
<p>在主题信息两边的 /* 和 */ 符号是为了让主题的信息不影响该文件的其他内容，这是 CSS 的注释。当输入 CSS 代码去样式化你的网页的时候，你可能想在这里增加些注释使得能够在以后更清楚知道这部分是干什么的。显然我们并不想你的注释影响实际的代码，所以可以使用 /* 和 */ 这一对符号使得注释不被解释。</p>
<p>下面是处理后的主题信息</p>
<p><img src="http://pic.fairyfish.com/2007/06/theme-info-thumbnail.gif" alt="theme-info-thumbnail.gif" /></p>
<h2>第1步：打开 <code>style.css </code>文件</h2>
<ul>
<li>打开 Xampp，主题文件夹，FireFox，IE 浏览器和 <code>style.css</code> 文件。</li>
<li>在两个浏览器的地址栏都输入：http://localhost/wordpress</li>
</ul>
<p>从这里开始，我们需要同时在 FireFox 和 IE 上测试主题，不同的浏览器对 CSS 的代码解释是不同的。如果能够在尽可能多的浏览器器上和尽可能多的操作系统上测试你的主题是最好的（Safari，Opera，Linux，Netscape 等等）。如果你和我一样懒，那就只在 FireFox 和 IE 上测试你的主题吧。</p>
<h2>第2步：添加 CSS 代码</h2>
<p>在 <code>style.css</code> 文件中输入以下代码：</p>
<p><strong>body{<br />
margin: 0;<br />
font-family: Arial, Helvetica, Georgia, Sans-serif;<br />
font-size: 12px;<br />
text-align: left;<br />
vertical-align: top;<br />
background: #ffffff;<br />
color: #000000;<br />
}</strong></p>
<p>像 XHTML 和 PHP 一样，通过制表符增加缩进来组织代码：</p>
<p><img src="http://pic.fairyfish.com/2007/06/add-body.gif" alt="add-body.gif" /></p>
<p>保存 <code>style.css</code> 文件并<strong>刷新</strong> 两个浏览器 <strong>Firefox</strong> 和 <strong>Internet Explorer</strong> 查看变化。</p>
<p>把 <strong>body{ }</strong> 看作一个标签，然后它里面所有的东西看作属性和值，和处理 XHTML 时一样。<strong>{</strong> 是开始符，<strong>}</strong> 是结束符。在 <strong>{</strong> 和 <strong>}</strong> 之间，<strong>冒号意思是开始</strong>而<strong>分号意思是结束</strong>。（我在涉及到 XHTML，PHP，CSS的时候都使用标签，属性和值这些术语是为了保持简单，实际上 PHP 和 CSS 有不同术语。如参数（parameters），选择器（selector）和属性（property）。）</p>
<p>在我们继续之前，我需要解释下为什么使用 <strong>body{ }</strong> （CSS 选择器），是因为你是在样式化网页的绝大基本部分（或者说是总体部分），<strong>&lt;body&gt;</strong> 标签。你不会样式 &lt;head&gt; 因为这个标签没有东西需要样式化。你网页上展示的绝大部分的东西是在 <strong>&lt;body&gt;</strong> 和 <strong>&lt;/body&gt;</strong> 标签之间。</p>
<p>然后，在后面你会样式化 ID 为 <strong>header</strong> 的 DIV 标签。</p>
<p><strong>进一步的解释</strong>：</p>
<p><strong>margin: 0;</strong> 处理 body 标签的默认的页边空白，如果你要页边空白或者更大的页面空白，把 0 改成 10px，20px 或者其他。PX 意思是像素。每个像素使你电脑屏幕的一个点。当你的页边空白是 0 的话，就不需要后面跟上 px。</p>
<p>在下面的图片中，红色高亮的区域就是应用于 body 标签的默认的页边空白。</p>
<p><img src="http://pic.fairyfish.com/2007/06/show-margin.gif" alt="show-margin.gif" /></p>
<p>当给其样式化为 <strong>margin: 0;</strong>，下面是没有页边空白的相同页面：</p>
<p><img src="http://pic.fairyfish.com/2007/06/margin-0.gif" alt="margin-0.gif" /></p>
<p><strong>font-family: Arial, Helvetica, Georgia, Sans-serif;</strong> 为你的网页或者网站选择使用哪种字体。这些字体中的第一个，<strong>Arial</strong>  是可替换的，如果你的用户没有在他们的电脑上安装 <strong>Arial</strong> 这种字体，<strong>style.css</strong> 文件就会寻找 <strong>Helvetica</strong>，然后是 <strong>Georgia</strong>，再接着是 <strong>Sans-serif</strong>。你可以在字体文件夹（<strong>我的电脑 &gt; 系统盘 &gt; Windows</strong>下面）找到你的字体列表。</p>
<p><strong>font-size: 12px;</strong> 显而易见是字体大小。可以把它改大或改小以查看变化。</p>
<p><strong>text-align: left;</strong> 让你的文本向左对齐。把它改成 text-align: right; 去查看不同之处。</p>
<p><strong>vertical-align: top;</strong> 使得所有的东西从上面开始。如果是中部或底部排行你的 body 标签，所有东西将会向下推。</p>
<p><strong>background: #ffffff;</strong> 意思是白色背景。#ffffff 是白色十六进制代码。#000000 是黑色十六进制代码。</p>
<p><strong>color: #000000;</strong> 意思是文本颜色是黑色。</p>
<p>如果你想向前更进一步或者自己学习 CSS，最好的地方是 <a href="http://w3schools.com/css/default.asp">w3schools.com</a></p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%239%EF%BC%9AStyle.css+%E5%92%8C+CSS+%E4%BB%8B%E7%BB%8D&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">收藏本文</a>
 / <a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/#comments" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">6条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><strong>WordPress 主题教程 #9：Style.css 和 CSS 介绍</strong></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=138005646&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F06%2F16%2Fwp-theme-lesson-9-stylecss-and-css-intro%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%239%EF%BC%9AStyle.css+%E5%92%8C+CSS+%E4%BB%8B%E7%BB%8D&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #8：验证 XHTML</title>
		<link>http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/</link>
		<comments>http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:49:30 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/</guid>
		<description><![CDATA[验证 XHTML 是从零开始创建 WordPress 主题系列教程的第八篇。在学习 CSS 并修改 style.css 文件之前，我们需要学习如何验证代码。简单说，验证（Validate/Validating/Validation）就是确认代码没有错误，而验证又分为：XHTML Validator 和 CSS Validator。这篇我们学到 XHTML 验证器。]]></description>
			<content:encoded><![CDATA[<p><strong>验证 XHTML </strong>是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程的第八篇</a>。在开始学习 CSS 并修改 <code>style.css</code> 文件之前，我们需要学习如何验证代码，简单说，验证（Validate/Validating/Validation）就是检查下代码有没有错误，而验证又分为：<a href="http://validator.w3.org/">XHTML Validator</a> 和 <a href="http://jigsaw.w3.org/css-validator/">CSS Validator</a>。这篇我们学到 XHTML 验证器。<br />
<span id="more-688"></span></p>
<p>首先打开 <strong>Xampp Control</strong> 和浏览器，并进入 <strong>http://localhost/wordpress</strong>。</p>
<p>然后<strong>查看 &gt; 页面源代码</strong>。</p>
<p>全选并所有的源代码。</p>
<p>然后到 <a href="http://validator.w3.org/">XHTML Validator</a>。</p>
<p>把刚才复制的源代码粘贴到 <strong>Validate by Direct Input</strong> 框中。</p>
<p><img src="http://www.wpdesigner.com/wp-content/files/2007/03/paste-codes.gif" alt="paste-codes.gif" /></p>
<p>点击 <strong>Check</strong> 之后，验证器会就会检查代码，然后把检测结果反馈给我们。如果反馈回来的结果是绿色的，那么代码没有错误。</p>
<p><img src="http://www.wpdesigner.com/wp-content/files/2007/03/passed-validation.gif" alt="passed-validation.gif" /></p>
<p>如果有错误，则根据其提示进行修改。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%238%EF%BC%9A%E9%AA%8C%E8%AF%81+XHTML+&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #8：验证 XHTML ">收藏本文</a>
 / <a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/#comments" title="WordPress 主题教程 #8：验证 XHTML ">13条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><strong>WordPress 主题教程 #8：验证 XHTML </strong></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=42717314&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F06%2F13%2Fwp-theme-lesson-8-how-to-validate%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%238%EF%BC%9A%E9%AA%8C%E8%AF%81+XHTML+&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #7：尾部</title>
		<link>http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/</link>
		<comments>http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:38:57 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/</guid>
		<description><![CDATA[尾部（footer）是从零开始创建 WordPress 主题系列教程的第七篇，这篇教程将会很简单，去只要在侧边栏下增加个 DIV 标签，然后输入一些版权信息。]]></description>
			<content:encoded><![CDATA[<p><strong>尾部（footer）</strong>是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第七篇，这篇教程将会很简单，去只要在侧边栏下增加个 DIV 标签，然后输入一些版权信息。其实你完全可以不用我说明就能自己去做，可以先自己尝试下，然后返回这里再仔细检查下。<br />
<span id="more-687"></span></p>
<h2>第1步：增加个 DIV 标签</h2>
<p>在侧边栏的 DIV 标签下输入以下代码：</p>
<p><strong>&lt;div id=”footer”&gt;</strong><br />
<strong>&lt;/div&gt;</strong></p>
<p><img src="http://pic.fairyfish.com/2007/06/add-footer.gif" alt="add-footer.gif" /></p>
<h2>第2步：添加版权信息</h2>
<p>把尾部的文本放入段落标签中，你可以输入任何你想要的东西，这里是我的：</p>
<p><strong>&lt;p&gt;<br />
Copyright © 2007 &lt;?php bloginfo(’name’); ?&gt;<br />
&lt;/p&gt;</strong></p>
<p><img src="http://pic.fairyfish.com/2007/06/add-footer-text.gif" alt="add-footer-text.gif" /></p>
<p>保存并刷新浏览器，结果如下：</p>
<p><img src="http://pic.fairyfish.com/2007/06/footer.gif" alt="footer.gif" /></p>
<p><strong>©</strong> 用于显示版权符号，还记得在 header 的时候使用的 <strong>bloginfo()</strong> 函数吗？这里再次使用，“<strong>name</strong>”是用于调用博客标题，而“<strong>url</strong>”调用博客的地址。</p>
<p>如果你想你的博客标题成为一个链接，查下头部就知道怎么做了。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%237%EF%BC%9A%E5%B0%BE%E9%83%A8&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #7：尾部">收藏本文</a>
 / <a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/#comments" title="WordPress 主题教程 #7：尾部">14条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">WordPress 主题教程 #6e：窗体化侧边栏</a></li>
<li><strong>WordPress 主题教程 #7：尾部</strong></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1899701204&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F06%2F13%2Fwp-theme-lesson-7-footer%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%237%EF%BC%9A%E5%B0%BE%E9%83%A8&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>WordPress 主题教程 #6e：窗体化侧边栏</title>
		<link>http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/</link>
		<comments>http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 17:24:17 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://fairyfish.net/2007/06/10/wp-theme-lesson-6e-widgetizing-sidebar/</guid>
		<description><![CDATA[窗体化侧边栏是从零开始创建 WordPress 主题系列教程的第六篇的第五部分，一个支持 Widget 的侧边栏或者说是窗体化（widgetized）的侧边栏几乎是 WordPress 主题的标准。首先，什么是窗体化（widgetizing）呢？简单的说，窗体化就是能够通过拖拉就能够整理侧边栏的模块。]]></description>
			<content:encoded><![CDATA[<p><strong>窗体化侧边栏</strong>是<a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/">从零开始创建 WordPress 主题系列教程</a>的第六篇的第五部分，一个支持 Widget 的侧边栏或者说是窗体化（widgetized）的侧边栏几乎是 WordPress 主题的标准。</p>
<p>首先，什么是窗体化（widgetizing）呢？简单的说，窗体化就是能够通过拖拉就能够整理侧边栏的模块。比如我们需要更改分类和存档的位置，只需要简单把分类和存档列表拖到它们的位置即可，根本不用去修改侧边栏的代码。<br />
<span id="more-686"></span></p>
<h2>第1步：创建 functions.php 文件</h2>
<p>打开记事本，然后把空白文件保存为 <strong>functions.php</strong>。把 <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/functions.txt">functions.txt</a> 文件中所有的内容拷贝到 <strong>functions.php</strong> 中。</p>
<p>回顾一下，现在在“<strong>tutorial</strong>”主题文件夹下应该有4个文件。</p>
<p><img src="http://pic.fairyfish.com/2007/06/number-of-files.gif" alt="number-of-files.gif" /></p>
<h2>第2步：窗体化侧边栏</h2>
<p>直接在侧边栏的第一个 <strong>&lt;ul&gt;</strong> 标签输入以下代码：</p>
<p><strong>&lt;?php if ( function_exists(’dynamic_sidebar’) &amp;&amp; dynamic_sidebar() ) : else : ?&gt;</strong></p>
<p><img src="http://pic.fairyfish.com/2007/06/widgetize-if.gif" alt="widgetize-if.gif"  /></p>
<p>直接在 <strong>&lt;/ul&gt;</strong> 标签之前输入以下代码：</p>
<p><strong>&lt;?php endif; ?&gt;</strong></p>
<p><img src="http://pic.fairyfish.com/2007/06/widgetize-endif.gif" alt="widgetize-endif.gif" /></p>
<p>保存 <code>index.php</code> 文件，然后我们到 WordPress 后台 => 外观 => Widget 就可以把 Widget 拖到侧边栏了。</p>
<p>&gt;&gt;&gt;<a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/" title="WordPress 主题教程 #6e：窗体化侧边栏">继续阅读全文</a> ...</p><hr /><p><a href="http://s.click.taobao.com/t_8?e=7HZ5x%2BOzcBqQvUL9HREWEoUWa1c%3D&p=mm_25083601_0_0" rel="nofollow"><img src="http://fairyfish.net/wp-content/banner/notyet.gif"></a></p>
<p>
&copy; <a href="http://fairyfish.net/" title="我爱水煮鱼">我爱水煮鱼</a>
 / <a href="http://fairyfish.net/bookmark/?url=http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/&title=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%236e%EF%BC%9A%E7%AA%97%E4%BD%93%E5%8C%96%E4%BE%A7%E8%BE%B9%E6%A0%8F&tags=WordPress 主题, WordPress 教程, "  title="WordPress 主题教程 #6e：窗体化侧边栏">收藏本文</a>
 / <a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/#comments" title="WordPress 主题教程 #6e：窗体化侧边栏">31条评论</a>
 / <a href="http://feed.fairyfish.net" title="订阅我爱水煮鱼">RSS 订阅</a>
 / <a href="http://fairyfish.net/go/wpjam" title="WordPress JAM">长期承接 WordPress 项目</a>
 / <a href="http://fairyfish.net/coupon/" title="主机域名优惠码">主机域名优惠码</a>
 / <a href="http://weibo.com/denishua/" title="新浪微博">新浪微博</a>
</p><div id="series_posts"><h2><a href="http://fairyfish.net/series/wordpress-theme-tutorials/">WordPress 主题教程</a></h2><ul class="posts_lists"><li><a href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" title="WordPress 主题教程：从零开始制作 WordPress 主题">WordPress 主题教程：从零开始制作 WordPress 主题</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-1-intro/" title="WordPress 主题教程 #1：介绍">WordPress 主题教程 #1：介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-2-template-files-and-templates/" title="WordPress 主题教程 #2：模板文件和模板">WordPress 主题教程 #2：模板文件和模板</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-3-starting-indexphp/" title="WordPress 主题教程 #3：开始 Index.php">WordPress 主题教程 #3：开始 Index.php</a></li>
<li><a href="http://fairyfish.net/2007/06/04/wp-theme-lesson-4-header-template/" title="WordPress 主题教程 #4a：Header 模板">WordPress 主题教程 #4a：Header 模板</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-4b-header-template-continues/" title="WordPress 主题教程 #4b：Header 模板 2">WordPress 主题教程 #4b：Header 模板 2</a></li>
<li><a href="http://fairyfish.net/2007/06/05/wp-theme-lesson-5-the-loop/" title="WordPress 主题教程 #5：主循环">WordPress 主题教程 #5：主循环</a></li>
<li><a href="http://fairyfish.net/2007/06/06/wp-theme-lesson-5b-the-content/" title="WordPress 主题教程 #5b：日志内容">WordPress 主题教程 #5b：日志内容</a></li>
<li><a href="http://fairyfish.net/2007/06/07/wp-theme-lesson-5c-postmetadata/" title="WordPress 主题教程 #5c：日志元数据">WordPress 主题教程 #5c：日志元数据</a></li>
<li><a href="http://fairyfish.net/2007/06/08/wp-theme-lesson-5d-else-post-id-link-title/" title="WordPress 主题教程 #5d：Else，日志 ID，链接标题">WordPress 主题教程 #5d：Else，日志 ID，链接标题</a></li>
<li><a href="http://fairyfish.net/2007/06/09/wp-theme-lesson-5e-posts-nav-link/" title="WordPress 主题教程 #5e：日志导航链接">WordPress 主题教程 #5e：日志导航链接</a></li>
<li><a href="http://fairyfish.net/2007/06/10/wp-theme-lesson-6-sidebar/" title="WordPress 主题教程 #6：侧边栏">WordPress 主题教程 #6：侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/06/11/wp-theme-lesson-6b-page-link-listing/" title="WordPress 主题教程 #6b：页面链接列表">WordPress 主题教程 #6b：页面链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/12/wp-theme-lesson-6c-get-archives-and-links/" title="WordPress 主题教程 #6c：存档和链接列表">WordPress 主题教程 #6c：存档和链接列表</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-6d-search-form-and-calendar/" title="WordPress 主题教程 #6d：搜索框和日历">WordPress 主题教程 #6d：搜索框和日历</a></li>
<li><strong>WordPress 主题教程 #6e：窗体化侧边栏</strong></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-7-footer/" title="WordPress 主题教程 #7：尾部">WordPress 主题教程 #7：尾部</a></li>
<li><a href="http://fairyfish.net/2007/06/13/wp-theme-lesson-8-how-to-validate/" title="WordPress 主题教程 #8：验证 XHTML ">WordPress 主题教程 #8：验证 XHTML </a></li>
<li><a href="http://fairyfish.net/2007/06/16/wp-theme-lesson-9-stylecss-and-css-intro/" title="WordPress 主题教程 #9：Style.css 和 CSS 介绍">WordPress 主题教程 #9：Style.css 和 CSS 介绍</a></li>
<li><a href="http://fairyfish.net/2007/06/17/wp-theme-lesson-10-hex-codes-and-styling-links/" title="WordPress 主题教程 #10：十六进制颜色代码和样式化链接">WordPress 主题教程 #10：十六进制颜色代码和样式化链接</a></li>
<li><a href="http://fairyfish.net/2007/06/21/wp-theme-lesson-11-widths-and-floats/" title="WordPress 主题教程 #11：宽度和布局">WordPress 主题教程 #11：宽度和布局</a></li>
<li><a href="http://fairyfish.net/2007/06/29/wp-theme-lesson-12-post-formatting-and-miscellaneous/" title="WordPress 主题教程 #12：日志样式化和其他杂项">WordPress 主题教程 #12：日志样式化和其他杂项</a></li>
<li><a href="http://fairyfish.net/2007/07/07/wp-theme-lesson-13-styling-sidebar/" title="WordPress 主题教程 #13：样式化侧边栏">WordPress 主题教程 #13：样式化侧边栏</a></li>
<li><a href="http://fairyfish.net/2007/07/09/wp-theme-lesson-14-footer-and-dividing-index/" title="WordPress 主题教程 #14：底部和拆分 Index">WordPress 主题教程 #14：底部和拆分 Index</a></li>
<li><a href="http://fairyfish.net/2007/07/11/wp-theme-lesson-15-sub-template-files/" title="WordPress 主题教程 #15：子模板文件">WordPress 主题教程 #15：子模板文件</a></li>
<li><a href="http://fairyfish.net/2007/07/13/wp-theme-lesson-16-comments-template/" title="WordPress 主题教程 #16：留言模板">WordPress 主题教程 #16：留言模板</a></li>
<li><a href="http://fairyfish.net/2007/07/20/wp-theme-tutorial-learning-notes-by-erdaoo/" title="erdaoo 的 WP Theme 教程学习笔记">erdaoo 的 WP Theme 教程学习笔记</a></li>
<li><a href="http://fairyfish.net/2010/01/20/wordpress-theme-tutorials-ebook/" title="WordPress 主题教程电子书下载">WordPress 主题教程电子书下载</a></li>
</ul></div><img src="http://fairyfish.net/wp-content/plugins/all-in-one/ga.php?utmac=MO-328125-5&amp;utmn=1284392341&amp;utmr=-&amp;utmp=%2Frss%2F2007%2F06%2F13%2Fwp-theme-lesson-6e-widgetizing-sidebar%2F&amp;utmdt=WordPress+%E4%B8%BB%E9%A2%98%E6%95%99%E7%A8%8B+%236e%EF%BC%9A%E7%AA%97%E4%BD%93%E5%8C%96%E4%BE%A7%E8%BE%B9%E6%A0%8F&amp;guid=ON" />]]></content:encoded>
			<wfw:commentRss>http://fairyfish.net/2007/06/13/wp-theme-lesson-6e-widgetizing-sidebar/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

