Title: Add Device Type to Body Class
Author: Aftab Ali Muni
Published: <strong>2019 年 1 月 21 日</strong>
Last modified: 2023 年 11 月 26 日

---

搜索插件

![](https://ps.w.org/add-device-type-to-body-class/assets/banner-772x250.png?rev
=2016043)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/add-device-type-to-body-class/assets/icon.svg?rev=2016043)

# Add Device Type to Body Class

 作者：[Aftab Ali Muni](https://profiles.wordpress.org/aftabmuni/)

[下载](https://downloads.wordpress.org/plugin/add-device-type-to-body-class.zip)

 * [详情](https://cn.wordpress.org/plugins/add-device-type-to-body-class/#description)
 * [评价](https://cn.wordpress.org/plugins/add-device-type-to-body-class/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/add-device-type-to-body-class/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/add-device-type-to-body-class/#developers)

 [支持](https://wordpress.org/support/plugin/add-device-type-to-body-class/)

## 描述

This plugin is used to add type of device (mobile, tablet, desktop) in body class
of wordpress website. This class is used to add device specific CSS.

## 屏幕截图

[⌊Mobile, Tablet, Desktop Body Class Example⌉⌊Mobile, Tablet, Desktop Body Class
Example⌉[

Mobile, Tablet, Desktop Body Class Example

## 安装

To install this plugin follow below steps

 1. Upload the plugin files to the ‘/wp-content/plugins/’ directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. That’s it, no other settings needed.

## 常见问题

### When this plugin is useful?

This plugin is useful when you need to add mobile, tablet, desktop class to body
tag from device specific css.

### Is this plugin paid or free?

This plugin is totally free.

### What about support?

Create a support ticket at WordPress forum and I will take care of any issue.

## 评价

![](https://secure.gravatar.com/avatar/3ab23f250245313be95267bba20da4860837f35f551a85d2e5df8f316c84979f?
s=60&d=retro&r=g)

### 󠀁[Good plugin for add device type](https://wordpress.org/support/topic/good-plugin-for-add-device-type/)󠁿

 [ruby2000](https://profiles.wordpress.org/ruby2000/) 2023 年 9 月 29 日

Its a good plugin for adding device type into body class easily

 [ 阅读所有0条评价 ](https://wordpress.org/support/plugin/add-device-type-to-body-class/reviews/)

## 贡献者及开发者

「Add Device Type to Body Class」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Aftab Ali Muni ](https://profiles.wordpress.org/aftabmuni/)

[帮助将「Add Device Type to Body Class」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/add-device-type-to-body-class)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/add-device-type-to-body-class/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/add-device-type-to-body-class/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/add-device-type-to-body-class/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/add-device-type-to-body-class/)。

## 额外信息

 *  版本 **1.0**
 *  最后更新：**3 年前**
 *  活跃安装数量 **60+**
 *  WordPress 版本 ** 3.2 或更高版本 **
 *  已测试的最高版本为 **6.4.13**
 *  PHP 版本 ** 5.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/add-device-type-to-body-class/)
 * 标签
 * [desktop](https://cn.wordpress.org/plugins/tags/desktop/)[tablet](https://cn.wordpress.org/plugins/tags/tablet/)
 *  [高级视图](https://cn.wordpress.org/plugins/add-device-type-to-body-class/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/add-device-type-to-body-class/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/add-device-type-to-body-class/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/add-device-type-to-body-class/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/add-device-type-to-body-class/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/add-device-type-to-body-class/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/add-device-type-to-body-class/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/add-device-type-to-body-class/reviews/)

## 贡献者

 *   [ Aftab Ali Muni ](https://profiles.wordpress.org/aftabmuni/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/add-device-type-to-body-class/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/aftabmuni)