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

Call Tracking using GTM

I’ve noticed onClick tracking can be troublesome and sometimes doesn’t work as expected on WordPress websites, so its never 100% accurate. To get around these errors, I use Google Tag Manager to track call events. How to Track phone calls using Google Tag Manager: 1. If you haven’t already, install GTM on your website. 2…. Read More

Minimize WP HTML w/o a plugin

Here is the code (adding it to your WordPress’s functions.php file) to minimize your themes HTML code without a plugin. Add to Functions.php