欢迎来到 艾瑞可erik 的魔法世界 🧙‍♂️

给我一个需求,还你一个项目——别管它是什么。这就是全栈。

📚 292 篇文章 🏷️ 507 个标签 📂 90 个分类

🔥 最新文章

wordpress标签字体设置

wordpres断断续续捣鼓了一段时间,总算有自己的网站了,今天算完全能用了,突然发现标签字体很模糊。

从百度得到的答案是:

WordPress 默认标签云的字体最小为8pt,最大为22pt,标签显示数量为45个,按标签名称升序排列。但是用火狐查到是修改style.css样式的,可是怎么找也找不到,怎么办……无奈的百度 修改 WordPress 标签云方法 打开 wp-includes/category-template.php 搜索 wp_tag_cloud 找到 ‘smallest’ => 8, ‘largest’ => 22, ‘unit’ => ‘pt’, ‘number’ => 45,‘format’ => ‘flat’, ‘separator’ => “\n”, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, 具体的参数说明: smallest – 定义标签的最小字号,默认为 8;largest – 定义标签的最大字号,默认为 22;unit – 设置字号类型,如 “pt” 或 “px” 等,默认为 “pt” 类型; number – 设置标签云数量,默认显示 45 个标签;orderby – 设置按 “name” 或 “count” 排序,默认为 “name” 方式;(注:orderby=count 表示按照标签使用次数排列)order – 设置按 “DESC” 或 “ASC” 升降序排列,默认为 “ASC” 升序。 根据自己需求修改 wp_tag_cloud 函数的具体参数即可实现标签云的自定义,然后把category-template.php文件上传到空间中替换原文件。

Setting WordPress Tag Font Sizes

After tinkering with wordpres on and off for a while, I finally had my own website. Today it’s finally fully usable, when I suddenly noticed the tag font was very blurry.

The answer I got from Baidu was:

WordPress’s default tag cloud has a minimum font size of 8pt and a maximum of 22pt, displays 45 tags, and sorts them in ascending order by tag name. But checking with Firefox showed that it’s done by modifying the style.css stylesheet — yet no matter how I looked, I couldn’t find it. What to do… helpless, I turned to Baidu. How to modify the WordPress tag cloud Open wp-includes/category-template.php, search for wp_tag_cloud, and you’ll find ‘smallest’ => 8, ‘largest’ => 22, ‘unit’ => ‘pt’, ‘number’ => 45,‘format’ => ‘flat’, ‘separator’ => “\n”, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, Specific parameter descriptions: smallest – defines the minimum font size for tags, default 8; largest – defines the maximum font size for tags, default 22; unit – sets the font size unit, such as “pt” or “px”, default “pt”; number – sets the number of tags in the cloud, default 45 tags; orderby – sets sorting by “name” or “count”, default “name”; (Note: orderby=count means sorting by how many times a tag is used) order – sets ascending or descending order via “DESC” or “ASC”, default “ASC” ascending. Just modify the specific parameters of the wp_tag_cloud function according to your own needs to customize the tag cloud, then upload the category-template.php file to your hosting space to replace the original file.

lanmp独立而配置

(一)安装yum

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[root@delphi ~\]# cd /etc/yum.repos.d/
[root@delphi yum.repos.d\]# ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo
[root@delphi yum.repos.d\]# vi CentOS-Media.repo
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c6-media \[command\]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\\* --enablerepo=c6-media \[command\]

Setting up LANMP with a standalone configuration

(1) Install yum

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[root@delphi ~\]# cd /etc/yum.repos.d/
[root@delphi yum.repos.d\]# ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo
[root@delphi yum.repos.d\]# vi CentOS-Media.repo
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c6-media \[command\]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\\* --enablerepo=c6-media \[command\]