How to hide Gravity Form field labels

If you want to add support to hide field labels on a field by field basis, simply add the following line of code to your themes (functions.php).

What this code does is adds a Field Label Visibility dropdown under the Appearance tab in your Gravity Form field (see screenshot below).

Gravity Forms

gravity forms
gravity forms

Hiding Sub-Labels

You can hide sub-labels from the dropdown, illustrated below:

sub-labels
Sub-labels

If your labels are still viewable, ensure you do not have malformed CSS structure in your Gravity Forms or Template style. Placing the code below, in the bottom of your style.CSS file will rectify the issues.

Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

Defining what content shows up based on page type

Quick code to define what content shows up based on page type. I had to have different containers show up depending on page. The Code

Add a Gravity Forms shortcode in WordPress (PHP)

To add a Gravity Form shortcode in the header, page, footer templates… pretty much anywhere in the theme, just add this code in your PHP file. Gravity Forms Code: You can also add the embed codes: Basic This snippet will display the form with an id of ‘1’; the title and description will not be… Read More