<?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>Bolo的博客 &#187; Tags</title>
	<atom:link href="http://blog.imbolo.com/tag/tags/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.imbolo.com</link>
	<description>一个设计爱好者杂七杂八的博客</description>
	<lastBuildDate>Wed, 23 Nov 2011 16:19:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>修改WordPress标签云的字体大小以及显示数量</title>
		<link>http://blog.imbolo.com/tag-cloud/</link>
		<comments>http://blog.imbolo.com/tag-cloud/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 09:16:56 +0000</pubDate>
		<dc:creator>bolo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tags]]></category>

		<guid isPermaLink="false">http://digau.cn/?p=168</guid>
		<description><![CDATA[如何修改Widgets标签云的字体大小？稍微研究了一下，其实很简单]]></description>
			<content:encoded><![CDATA[<p>如何修改Widgets标签云的字体大小？稍微研究了一下，其实很简单，还是修改代码！我就是喜欢改代码，嘎嘎~</p>
<p>因为是修改Widgets标签云，所以目标文件依旧是<span style="color: #0000ff;">wp-includeswidgets.php</span>，打开并搜索<span style="color: #0000ff;">wp_tag_cloud</span>，这个就是标签云的调用函数了，查了一下参数表，得到<span style="color: #0000ff;">wp_tag_cloud</span>函数的参数如下：</p>
<p><span style="color: #ff0000;">smallest</span> – Adjusts the size of the smallest tags in the cloud. <span style="color: #ff0000;">Default is &#8220;8&#8243;</span>.<br />
<span style="color: #ff0000;">largest</span> – Adjusts the size of the biggest tags in the cloud. <span style="color: #ff0000;">Default is &#8220;22&#8243;</span>.<br />
<span style="color: #ff0000;">unit</span> – Sets the unit type for font size (i.e. point or em). <span style="color: #ff0000;">Default is &#8220;pt&#8221;</span>.<br />
<span style="color: #ff0000;">number</span> – How many tags will display in the cloud. <span style="color: #ff0000;">Default is &#8220;45&#8243;</span>.<br />
<span style="color: #ff0000;">format</span> – &#8220;Flat&#8221; displays an inline cloud with each term separated by whitespace. &#8220;List&#8221; generates an unordered list. &#8220;Array&#8221; lets you define an array of tags. <span style="color: #ff0000;">Default is &#8220;flat&#8221;</span>.<br />
<span style="color: #ff0000;">orderby</span> – Sort the cloud by &#8220;name&#8221; or &#8220;count&#8221;. <span style="color: #ff0000;">Default is &#8220;name&#8221;</span>.<br />
<span style="color: #ff0000;">order</span> – Sort the cloud in ascending or descending order. <span style="color: #ff0000;">Default is &#8220;ASC&#8221;</span>.</p>
<p> </p>
<p><span id="more-168"></span></p>
<p>这样结果就很明了了，如果要修改字体的大小，只要把 <span style="color: #0000ff;">wp_tag_cloud();</span> 修改为 <span style="color: #0000ff;">wp_tag_cloud(&#8216;unit=px&amp;smallest=8&amp;largest=20&#8242;);</span> 即可，其中：</p>
<p><span style="color: #0000ff;">unit=px</span>是字体大小的单位，使用我们熟悉的px最好；</p>
<p><span style="color: #0000ff;">smallest=8</span>是指最小字体大小，自己修改；</p>
<p><span style="color: #0000ff;">largest=20</span>是指最大字体大小，自己修改。</p>
<p>还可以使用<span style="color: #0000ff;">number=45</span>来设置标签的显示数量，<span style="color: #0000ff;">orderby=count</span>来使得标签云按照标签的使用次数来排列等等。。。</p>
<p  class="related_post_title">Random Posts</p><ul class="related_post"><li><a href="http://blog.imbolo.com/an-artical-about-my-college/" title="转：大学一年来">转：大学一年来</a></li><li><a href="http://blog.imbolo.com/wp_list_bookmark-make-ad-links-carousel/" title="利用wp_list_bookmarks函数实现广告链接轮播(修订版)">利用wp_list_bookmarks函数实现广告链接轮播(修订版)</a></li><li><a href="http://blog.imbolo.com/firefox-input-button-line-height-bug/" title="Firefox Input Button Line-Height Bug">Firefox Input Button Line-Height Bug</a></li><li><a href="http://blog.imbolo.com/autocad-exercise/" title="AutoCAD练习">AutoCAD练习</a></li><li><a href="http://blog.imbolo.com/bluehost-gzip/" title="BlueHost Gzip优化JS和CSS传输">BlueHost Gzip优化JS和CSS传输</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.imbolo.com/tag-cloud/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

