Title: Wrap form fields in Gravity Forms
Author: Mikkel Rommelhoff
Published: <strong>2016 年 5 月 12 日</strong>
Last modified: 2016 年 8 月 2 日

---

搜索插件

![](https://ps.w.org/wrap-form-fields-in-gravity-forms/assets/banner-772x250.png?
rev=1415369)

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

![](https://ps.w.org/wrap-form-fields-in-gravity-forms/assets/icon-256x256.png?rev
=1415369)

# Wrap form fields in Gravity Forms

 作者：[Mikkel Rommelhoff](https://profiles.wordpress.org/mrommel/)

[下载](https://downloads.wordpress.org/plugin/wrap-form-fields-in-gravity-forms.zip)

 * [详情](https://cn.wordpress.org/plugins/wrap-form-fields-in-gravity-forms/#description)
 * [评价](https://cn.wordpress.org/plugins/wrap-form-fields-in-gravity-forms/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wrap-form-fields-in-gravity-forms/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wrap-form-fields-in-gravity-forms/#developers)

 [支持](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/)

## 描述

An add-on for [Gravity Forms](http://www.gravityforms.com) which allows you to wrap
form items in a div with a custom class for styling purposes. Supports conditional
statements.

Features of this plugin:

 * Add a wrapper (div) for the form items.
 * Includes option to add a custom class for styling.
 * Supports conditional statements.
 * Autocomplete of wrapper to properly close all HTML tags.
 * Auto-delete of wrapper to properly close all HTML tags.

Available Languages:

 * English
 * Danish

## 屏幕截图

[⌊How it works.⌉⌊How it works.⌉[

How it works.

[⌊First look upon the new wrapper fields.⌉⌊First look upon the new wrapper fields
.⌉[

First look upon the new wrapper fields.

[⌊Set an internal name.⌉⌊Set an internal name.⌉[

Set an internal name.

[⌊Add your classes.⌉⌊Add your classes.⌉[

Add your classes.

[⌊Conditional logic.⌉⌊Conditional logic.⌉[

Conditional logic.

[⌊Wrapper field end.⌉⌊Wrapper field end.⌉[

Wrapper field end.

## 安装

 1. This plugin requires the Gravity Forms plugin, installed and activated
 2. Upload folder to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in the WordPress administration
 4. Your wrappers are now available in your form editor

#### Updating

Whenever there is an update pending for the plugin a notification will be visible
in your WordPress dashboard. Before you update remember to backup your site just
in case.

## 常见问题

  Installation Instructions

 1. This plugin requires the Gravity Forms plugin, installed and activated
 2. Upload folder to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in the WordPress administration
 4. Your wrappers are now available in your form editor

#### Updating

Whenever there is an update pending for the plugin a notification will be visible
in your WordPress dashboard. Before you update remember to backup your site just
in case.

## 评价

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

### 󠀁[Very Useful!](https://wordpress.org/support/topic/very-useful-2203/)󠁿

 [richard1st](https://profiles.wordpress.org/richard1st/) 2020 年 3 月 22 日

Thanks for a simple and useful plugin!

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

### 󠀁[Allmost good](https://wordpress.org/support/topic/allmost-good/)󠁿

 [Mark Creeten](https://profiles.wordpress.org/markcreeten/) 2018 年 2 月 15 日

it does wrap field list items, but also add’s empty not needed ‘s to the code.

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

### 󠀁[nicely stolen](https://wordpress.org/support/topic/nicely-stolen/)󠁿

 [HarroH](https://profiles.wordpress.org/harroh/) 2016 年 12 月 2 日

Nice plugin, too bad its stolen from another plugin.

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

### 󠀁[Breaks conditional logic](https://wordpress.org/support/topic/breaks-conditional-logic/)󠁿

 [Rob](https://profiles.wordpress.org/robmuzo/) 2016 年 11 月 22 日

I had a set of multi selects Then 2 wrappers with different fields in The first 
one shows when clicking the first multi select, the second one does not.

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

### 󠀁[Works great, does exactly what it promises!](https://wordpress.org/support/topic/works-great-does-exactly-what-it-promises/)󠁿

 [Kate](https://profiles.wordpress.org/kwalshucnjgmailcom/) 2016 年 9 月 3 日

Awesome extension for customizing Gravity Forms with wrappers for more custom layouts—
without digging through code. I was preparing myself to go hunting through Gravity’s
code, painstakingly adding in custom wrappers in the places I needed it… instead,
I found this plugin and was done with what I needed to do in about 10 minutes. A
+, works great! Thank you for this plugin!

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

### 󠀁[Really useful!](https://wordpress.org/support/topic/really-useful-72/)󠁿

 [Marlon Amâncio](https://profiles.wordpress.org/marlonlamancio/) 2016 年 9 月 3
日 1 回复

Thanks for this plugin! Works as promised.

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/reviews/)

## 贡献者及开发者

「Wrap form fields in Gravity Forms」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mikkel Rommelhoff ](https://profiles.wordpress.org/mrommel/)

[帮助将「Wrap form fields in Gravity Forms」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wrap-form-fields-in-gravity-forms)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * Initial release

## 额外信息

 *  版本 **0.1.1**
 *  最后更新：**10 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 4.2 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wrap-form-fields-in-gravity-forms/)
 * 标签
 * [custom class](https://cn.wordpress.org/plugins/tags/custom-class/)[forms](https://cn.wordpress.org/plugins/tags/forms/)
   [gravity forms](https://cn.wordpress.org/plugins/tags/gravity-forms/)[gravity forms styling](https://cn.wordpress.org/plugins/tags/gravity-forms-styling/)
   [wrapper](https://cn.wordpress.org/plugins/tags/wrapper/)
 *  [高级视图](https://cn.wordpress.org/plugins/wrap-form-fields-in-gravity-forms/advanced/)

## 评级

 3.3 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/reviews/)

## 贡献者

 *   [ Mikkel Rommelhoff ](https://profiles.wordpress.org/mrommel/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wrap-form-fields-in-gravity-forms/)