WPForms, Display description above field

WPForms displays field descriptions below the field by default, but this can be changed very easily with a few lines of code.

 * WPForms, description above field
 * @author Bill Erickson
 * @link https://www.billerickson.net/code/wpforms-description-above-field
 * @param array $properties, field properties
 * @return array
function ea_wpforms_description_above_field( $properties ) {
	$properties['description']['position'] = 'before';
	return $properties;
add_filter( 'wpforms_field_properties', 'ea_wpforms_description_above_field' );

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk