简体   繁体   中英

How to hide a Gravity Forms field with css

I would like to hide one of the fields (product field) entirely using CSS. How can I do this?

You'll want to use the gf_invisible class on the "CSS Class Name" setting for the field. This class is available out of the box with Gravity Forms and hides the field by positioning it off the screen rather than "display: none;. Gravity Forms will not count product fields that are "display: none;" towards the total.

More information here: http://gravitywiz.com/how-to-hide-gravity-forms-product-fields/

您可以通过字段的“外观”选项卡添加自定义CSS类(例如“ hide-field”。比在CSS中添加):

.hide-field{ display: none; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM