이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

GravityWP – CSS Selector

설명

This plugin is an add-on for the amazing Gravity Forms Plugin.
Special thanks to Brad Vincent and Bryan Willis 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

스크린샷

  • 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.

FAQ

Does this plugin rely on anything?

Yes, you need to install the Gravity Forms Plugin 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' );

후기

2021년 3월 12일 답글 1개
Fantastic plugin to style your Gravity forms. Saves a lot of time. Thanks you so much for making this available.
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.
2019년 3월 12일 답글 1개
Does the job exactly how you want.. wish I could drop 10 points here
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 평가 읽기

기여자 & 개발자

“GravityWP – CSS Selector”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“GravityWP – CSS Selector”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “GravityWP – CSS Selector”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

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