跳到内容

Custom Body Class

v0.7.5

Andrei Lupu · 2015年7月26日 上架

A plain simple plugin which allows you to add a custom CSS class the HTML body tag.

正在使用
1 万+
评分
5.0 / 5
累计下载
12 万
最近更新
2025年7月28日
21 条评价需要 WordPress 5.2.0+已测试到 6.8.13

贡献者

You can use this plugin to add a unique CSS class to your pages or posts.

Demo

TasteWP has prepared a quick WordPress instance with this plugin, so you can give it a try in this demo

Responsiveness

There’s a way to add a class to appear only on mobile devices. You can do that by simply adding mobile- on the front of
the class. For example, if you want to have the class “car” for mobile side, you need to use “mobile-car”.

Support me

If you find this plugin helpful, or you just want to send me a coffee here are the ways:

  • Use the Github Sponsor button
  • Ko-fi
  • Watch me coding on twitch.tv/thelup
  • Or simply visit my site lup.dev and make those analytics ring the bells.

Plums

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

导航

说明

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

© 2026 Plums