Title: GravityWP &#8211; CSS Selector
Author: GravityWP
Published: <strong>2017 年 6 月 10 日</strong>
Last modified: 2025 年 4 月 16 日

---

搜尋外掛

![](https://ps.w.org/gravitywp-css-selector/assets/banner-772x250.jpg?rev=3215192)

![](https://ps.w.org/gravitywp-css-selector/assets/icon-256x256.jpg?rev=3215192)

# GravityWP – CSS Selector

 由 [GravityWP](https://profiles.wordpress.org/gravitywp/) 開發

[下載](https://downloads.wordpress.org/plugin/gravitywp-css-selector.1.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/gravitywp-css-selector/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/gravitywp-css-selector/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/gravitywp-css-selector/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/gravitywp-css-selector/#developers)

 [技術支援](https://wordpress.org/support/plugin/gravitywp-css-selector/)

## 外掛說明

> This plugin is an add-on for the amazing Gravity Forms Plugin.
>  Special thanks
> to [Brad Vincent](https://profiles.wordpress.org/bradvin/) and [Bryan Willis](https://github.com/bryanwillis)
> for developing the first and revised version of this plugin.

Gravity Forms has CSS Ready Classes to style your form fields. Using these classes,
you can easily create more advanced layouts for the fields in your forms. Excellent
idea, however, the problem is you always need to remember what the exact class name
is. Now with this CSS Selector, you don’t need to remember. Simply click on a button
to launch the pop-up and choose the class you want to add.

#### Features

 * Convenient button added under the advanced tab next to the CSS Class field
 * Clean and simple pop-up that lists all the CSS Ready Classes
 * HTML Field Classes (alerts), Gravity PDF, Gravity Perks and CSS Ready Classes
   selectable
 * Add more than one CSS Ready Class
 * Double-click a CSS Ready Class to add it and auto-close the popup
 * Add your own custom CSS to the pop-up modal

### About GravityWP

GravityWP is a third party that develops high-quality addons for Gravity Forms. 
We provide additional tools that can be used to build full-blown web applications.

 * [Advanced Merge Tags](https://gravitywp.com/add-on/advanced-merge-tags/): Enhance
   your form customization with powerful merge tag modifiers, enabling functions
   like date adjustments, character and word counts, URL encoding, and retrieving
   data from other forms or sources.
 * [JWT Prefill](https://gravitywp.com/add-on/jwt-prefill/): Securely populate form
   fields using JSON Web Tokens, ensuring data integrity and streamlining user experience.
 * [Advanced Number Field](https://gravitywp.com/add-on/advanced-number-field/):
   Enhance number fields with features like custom units, fixed decimal places, 
   sliders, and calculated min/max validation rules.
 * [List Number Format](https://gravitywp.com/add-on/list-number-format/): Transform
   list field columns into numeric formats, supporting calculations such as totals,
   or other row and column-based computations, with options for rounding, currency,
   and range constraints.
 * [List Dropdown](https://gravitywp.com/add-on/list-dropdown/): Convert specific
   list field columns into dropdown select inputs.
 * [List Datepicker](https://gravitywp.com/add-on/list-datepicker/): Add calendar-
   based datepickers to list fields, allowing users to select dates directly within
   list columns.
 * [List Text](https://gravitywp.com/add-on/list-text/): Enhance list columns with
   features like placeholders, textareas, and custom validation.
 * [Field to Entries](https://gravitywp.com/add-on/field-to-entries/): Automatically
   generate new form entries based on checkbox selections, multi-select choices,
   or list row data.
 * [Update Multiple Entries](https://gravitywp.com/add-on/update-multiple-entries/):
   Enable bulk updates of large amounts of existing entries in target forms through
   trigger forms, streamlining data management.
 * And more…

Discover our suite of powerful [Add-ons for Gravity Forms](https://gravitywp.com/add-ons/).

## 螢幕擷圖

 * [[
 * The button that gets added in the advanced tab
 * [[
 * The pop-up modal that is displayed
 * [[
 * Add custom css

## 安裝方式

 1. Upload the plugin folder to your `/wp-content/plugins/` folder
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Make sure you also have Gravity Forms activated.

## 常見問題集

### Does this plugin rely on anything?

Yes, you need to install the [Gravity Forms Plugin](http://www.gravityforms.com/)
for this plugin to work. And it needs to be at least v1.5.

### How to add custom CSS buttons?

You can add your own CSS to the CSS Selector easily in your functions.php file. 
Just add the following example code there. It adds quick buttons and an accordion
on top of the modal. That way you can put easily your own CSS in the layout you 
want.

    ```
    // Add custom css: quick buttons and accordion at the top of the GravityWP - CSS Selector modal
    function my_custom_gwp_css_selector_add_css() {
        $html .= "<div class='gwp_quick_links'>
        <a class='gwp_css_link' href='#' rel='your_custom_css_class' title='Adds your_custom_css_class to the CSS field'>Custom css</a>
        <a class='gwp_css_link' href='#' rel='your_custom_css_class_2' title='Adds your_custom_css_class_2 to the CSS field'>2nd custom css</a></div>
        <li>
        <a class='gwp_css_acc_link' href='#'>Custom CSS</a>
        <div class='gwp_css_accordian'>
        <a class='gwp_css_link' href='#' rel='your_custom_css_class' title='Adds your_custom_css_class to the CSS field'>Custom css</a>
        <a class='gwp_css_link' href='#' rel='your_custom_css_class_2' title='Adds your_custom_css_class_2 to the CSS field'>2nd custom css</a>
        </div>
        </li>";
        return $html;
    }
    add_filter( 'gwp_css_selector_add_custom_css', 'my_custom_gwp_css_selector_add_css' );
    ```

## 使用者評論

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

### 󠀁[Great helper](https://wordpress.org/support/topic/great-helper-9/)󠁿

 [Andre](https://profiles.wordpress.org/picturebreeze/) 2021 年 3 月 12 日 1 則留言

Fantastic plugin to style your Gravity forms. Saves a lot of time. Thanks you so
much for making this available.

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

### 󠀁[time saver](https://wordpress.org/support/topic/time-saver-241/)󠁿

 [guillermodewey](https://profiles.wordpress.org/guillermodewey/) 2019 年 10 月 
7 日 1 則留言

I’ve check out css name documentation for gravity like a million times to make columns
until I came across this plugin.. thanks for making it available. it does what it
should. would be nice to have the actual field value delete when selecred other 
option.

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

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-21135/)󠁿

 [swiftblack](https://profiles.wordpress.org/swiftblack/) 2019 年 3 月 12 日 1 則
留言

Does the job exactly how you want.. wish I could drop 10 points here

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

### 󠀁[lovely plugin!](https://wordpress.org/support/topic/lovely-plugin-28/)󠁿

 [ordrori](https://profiles.wordpress.org/ordrori/) 2018 年 9 月 3 日

thank you!

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

### 󠀁[Nice, Easy, Really Helpful](https://wordpress.org/support/topic/nice-easy-really-helpful/)󠁿

 [netart.gr](https://profiles.wordpress.org/geokantze/) 2018 年 7 月 13 日

It adds an easy button that help us create columns in gravity forms. Thank you!

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

### 󠀁[Great Plugin and very much needed](https://wordpress.org/support/topic/great-plugin-and-very-much-needed/)󠁿

 [bruno05](https://profiles.wordpress.org/bruno05/) 2018 年 2 月 19 日

I tried the other css selector plugin but that looks like it has been abandoned.
Found this and very impressed. Worked well and like all the options. Now if only
you can create a styling plugin for Gravity forms. Gravity forms is great but ugly
and does not have multi column support, but you have done a great job with this.

 [ 閱讀全部 9 則使用者評論 ](https://wordpress.org/support/plugin/gravitywp-css-selector/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈GravityWP – CSS Selector〉的開發相關工作。

參與者

 *   [ GravityWP ](https://profiles.wordpress.org/gravitywp/)

〈GravityWP – CSS Selector〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/gravitywp-css-selector/contributors)
為這個外掛做出的貢獻。

[將〈GravityWP – CSS Selector〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/gravitywp-css-selector)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/gravitywp-css-selector/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/gravitywp-css-selector/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/gravitywp-css-selector/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/gravitywp-css-selector/)。

## 變更記錄

#### 1.1

 * Added pot files for translations
 * Updated Dutch translation.

#### 1.0.2

 * Added Gravity Forms version check, hide deprecated CSS Ready Classes in 2.5 and
   higher
 * Added title tags with more detailed description of the function of every CSS 
   class
 * Added new vertical choices columns (gf_list_2col_vertical, gf_list_3col_vertical,
   gf_list_4col_vertical, gf_list_5col_vertical), only visible in GF 2.5 and higher
 * Added new HTML Field Classes (gf_alert_green, gf_alert_red, gf_alert_yellow, 
   gf_alert_gray, gf_alert_blue), only visible in GF 2.5 and higher
 * Added gf_inline CSS Ready Class
 * Updated url to GravityWP documentation to add custom CSS buttons to the CSS selector(
   https://gravitywp.com/doc/add-custom-css-buttons/)
 * Security enhancements

#### 1.0.1

 * Updated url to official Gravity Forms CSS Ready Classes documentation (https://
   docs.gravityforms.com/css-ready-classes/)

#### 1.0

 * Add gwp_css_selector_add_custom_css filter to add custom css
 * Updated translation files

#### 0.2.2

 * Adjusted the Gravity PDF pagebreak CSS
 * Added gf_invisible CSS class
 * Combined list columns and list heights to Radio Buttons & Checkboxes
 * Changed links to documentation

#### 0.2.1

 * Added pagebreak support for Gravity PDF
 * Updated translation file
 * Updated Dutch translation

#### 0.2

 * Added CSS classes for Gravity PDF (exclude) and Gravity Wiz (Copy Cat)
 * Updated layout (documentation available on click)

#### 0.1

 * Initial Release
 * Added localisation

## 中繼資料

 *  版本 **1.1**
 *  最後更新 **1 年前**
 *  啟用安裝數 **4,000+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/gravitywp-css-selector/) 及 [English (US)](https://wordpress.org/plugins/gravitywp-css-selector/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/gravitywp-css-selector)
 * 標籤
 * [css ready classes](https://tw.wordpress.org/plugins/tags/css-ready-classes/)
   [form](https://tw.wordpress.org/plugins/tags/form/)[forms](https://tw.wordpress.org/plugins/tags/forms/)
   [gravity form](https://tw.wordpress.org/plugins/tags/gravity-form/)[gravity forms](https://tw.wordpress.org/plugins/tags/gravity-forms/)
 *  [進階檢視](https://tw.wordpress.org/plugins/gravitywp-css-selector/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  9 個 5 星使用者評論     ](https://wordpress.org/support/plugin/gravitywp-css-selector/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/gravitywp-css-selector/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/gravitywp-css-selector/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/gravitywp-css-selector/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/gravitywp-css-selector/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gravitywp-css-selector/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/gravitywp-css-selector/reviews/)

## 參與者

 *   [ GravityWP ](https://profiles.wordpress.org/gravitywp/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/gravitywp-css-selector/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://gravitywp.com/support/)