战者不争'way

青岛,香港,上海,云计算,IT,虚拟化,信息化,崂山,自虐行,family,可可西里,CIO

修改WordPress标签云的字体大小以及显示数量

&&
&&

wp-includes/category-template.php,打开并搜索wp_tag_cloud,这个就是标签云的调用函数了,查了一下参数表,得到wp_tag_cloud函数的参数如下:

smallest – Adjusts the size of the smallest tags in the cloud. Default is “8″.
largest – Adjusts the size of the biggest tags in the cloud. Default is “22″.
unit – Sets the unit type for font size (ie point or em). Default is “pt”.
number – How many tags will display in the cloud. Default is “45″.
format – “Flat” displays an inline cloud with each term separated by whitespace. “List” generates an unordered list. “Array” lets you define an array of tags. Default is “flat”.
orderby – Sort the cloud by “name” or “count”. Default is “name”.
order – Sort the cloud in ascending or descending order. Default is “ASC”.

对照修改即可,其中:

unit=是字体大小的单位,使用我们熟悉的px最好;

smallest=是指最小字体大小,自己修改;

largest=是指最大字体大小,自己修改。

还可以使用number=来设置标签的显示数量,orderby=来使得标签云按照标签的使用次数来排列等等。

Related posts:

  1. 修改WordPress标签云的字体大小以及显示数量 wp-includes/category-template.php,打开并搜索wp_tag_cloud,这个就是标签云的调用函数了,查了一下参数表,得到wp_tag_cloud函数的参数如下: smallest – Adjusts the size of the smallest tags...
  2. 30+Wordpress分类插件 网站结构清晰友好,这是一个优秀网站必备的元素之一。对于Wordpress博客来说,拥有一个良好的网站结构,首先就得从你的分类下手,本文里面帕兰为你收集了30+Wordpress分类插件,能让你更好的运行Wordpress的分类系统,给用户更加方便的浏览体验。这其中主要包括指定分类列表文章类WordPress插件,美化分类菜单显示的Wordpress插件,让分类管理更加方便的Wordpress插件等等。 WP-Cumulus 在一个3D Flash中显示标签云或分类。详细介绍看之前的WP Cumulus: 可视化的3D Flash标签云Wordpres插件 Wordpress Navigation List...
  3. 详解wordpress博客wp_list_categories标签用法 wp_list_categories 标签的用法。 作用: ·不是连接到某个分类的 ·排列分类 ·不显示上一次更新(上次更新后,在当前类内) ·可以无序排列 ·可以显示日志数量 ·可以只显示制定某个分类 ·可以指定分类说明or标题...
  4. wordpress首页显示日志缩略图的实现 今天“雪山飞猪” 先生翻译了一篇名为:使用自定义字段来显示日志缩略图 这样的文章,我看了一下,嗯,应该说wordpress提供了一个自定义字段这个功能是蛮不错的。 关于自定义字段大家可以看看官方关于此的介绍:Using Custom Fields。 有着非常强大的功能。 在此我介绍另一种方法来实现首页显示日志缩略图的方法。用插件来实现。貌似我没见谁提起过这个插件的。 插件下载地址是:http://code.google.com/p/jiucool/downloads/list 名字是get-the-image.rar由于作者网页已经打不开了,所以我传到这里来了。...
  5. jaylee推荐的29个wordpress插件 http://www.jaylee.cn/ 本站目前共启用了 29 个 Wordpress 插件。 插件 版本 作者 描述...

Related posts brought to you by Yet Another Related Posts Plugin.

Categories:Wordpress

Tag:

在我的博客留下你的足迹吧

评论可使用的 XHTML 标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

验证:1+0