Free Course

Remove Labels from Gravity Forms

by | Jun 15, 2019

If you don’t know how to remove labels in gravity forms this is a quick tutorial that will help you out. It is pretty simple and requires a small piece of php code.

First off, here is the problem. You want to make a form with only a input and button, no labels such as name, email, phone, etc. You could do the display:none and apply it to a specific button, but then you will have to manually input the code in the backend every time you didn’t want to display the gravity form label.

Make sure that you are in your child theme, this is very important, if you are not, an update to the site will rewrite the change to default. If you need help, watch this video so you can learn how to install a child theme on wordpress.

Once on your child theme select functions.php. Paste in the code below and make sure the click Update.

add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' );

Remove Labels from Gravity forms

Next, go into Gravity Forms and select the form that you wanted to remove the label from. Navigate to form settings and select the input that you want to edit. Once there go to the appearance tab. There is now a new drop down, Field Label Visibility. You can select Visible or Hidden from the drop down.

Gravity forms - Remove Labels
Select the Hidden option and refresh your page.

no labels with gravity forms

I had to do some additional CSS editing to the specific form for this project. The final product is below.

Final product

Question: I used the code but I would like to get my field labels back. I removed the code from functions.PHP but they are still not visible. How do I get them back?

Answer: If you removed labels and deleted the code, you need to put the code back in, then go to your form and switch the field visibility. Once you do that you can delete the code in the back end and you will still have your labels.

Current Post

→ The Best WordPress Theme

→ Email Automation Software

→ How to Monetize Landing Pages

→ The Blueprint the Ordinary People are Using to Become Super Affiliates

→ Free Course Reveals Step-by-Step Method to Working Online in 2021



Share This