Super-quick tutorial that explains how to disable the placeholder attribute and/or the <label> tag in USP form fields.

Disable the placeholder

To disable the placeholder in any form field, just use null as the attribute value in the shortcode. So for example, you would change this:

[usp_content placeholder=""]

..to this:

[usp_content placeholder="null"]

Ta-da, no more placeholder.

Disable the label tag

To disable the <label> tag in any form field, just use null as the attribute value in the shortcode. So for example, you would change this:

[usp_content label=""]

..to this:

[usp_content label="null"]

Ta-da, no more label.

Custom Fields

This same technique works on custom fields. Just add the following to your custom field definition:

  • Disable placeholder: placeholder#null
  • Disable label: label#null

FYI, you can also use blank/empty values, like so:

placeholder#|label#

That will ensure that the placeholder attribute and <label> tag remain in the markup but without any value.

Resources