跳到内容

Page Style

v1.0

viniciusbo · 2009年7月24日 上架

Allow pages/categories to have different styles by adding a CSS Class (the Page Name or Category/Tag Slug) to the BODY

正在使用
10+
评分
暂无
累计下载
3,286
最近更新
2009年8月27日
需要 WordPress 2.8.2+已测试到 2.8.4

贡献者

Allow pages/categories to have different styles by adding a CSS Class (the Page Name or Category/Tag Slug) to the BODY.

The CSS class can be the following:

  • Home Page: “home”
  • Search Page: “search”
  • Category Page: category slug
  • Single Post/Page: page/post slug
  • Posts listed by any date: “archive”
    • If posts are listed by year: “archive year”
    • If posts are listed by month: “archive month”
    • If posts are listed by day: “archive day”
  • Posts listed by author: “author”
  • 404 Error: “404”

Please, feel free to contribute or give me any feedback!

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums