Title: [Plugin: Visual Form Builder] Additional classes for CSS styling
Last modified: August 20, 2016

---

# [Plugin: Visual Form Builder] Additional classes for CSS styling

 *  Resolved [talbet](https://wordpress.org/support/users/talbet/)
 * (@talbet)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-visual-form-builder-additional-classes-for-css-styling/)
 * Congrats mmuro on what is already one of the best form plugins available.
 * I am currently working on a few forms that are pretty extensive and need a fair
   amount of styling to be comprehensible. In the next version it would be great
   to see some additional classes in the markup to make styling easier.
 * adding a class to each fieldset would be helpful. On line 1171 of visual-form-
   builder.php you could do something like this:
 * `$output .= '<fieldset class="' . str_replace(' ', '-', strtolower(stripslashes(
   $field->field_name ))). '"><legend><h3>' . stripslashes( $field->field_name ).'
   </h3></legend><ul>';`
 * adding a class to each list item with the type of input would also help, on line
   1180 of visual-form-builder.php I added:
 * `$output .= '<li class="' . $field->field_type .'"><label for="vfb-' . $field-
   >field_key . '" class="desc">'. stripslashes( $field->field_name ) . $required_span.'
   </label>';`
 * Also classes on the required span and description span would be helpful.
 * [http://wordpress.org/extend/plugins/visual-form-builder/](http://wordpress.org/extend/plugins/visual-form-builder/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-visual-form-builder-additional-classes-for-css-styling/#post-2345354)
 * I’ll consider the best way to add more classes to the elements. Thanks for the
   feedback.
 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-visual-form-builder-additional-classes-for-css-styling/#post-2345537)
 * Check Version 1.7 for a few more CSS classes.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Visual Form Builder] Additional classes for CSS styling’ is 
closed to new replies.

 * ![](https://ps.w.org/visual-form-builder/assets/icon-256x256.png?rev=1205840)
 * [Visual Form Builder](https://wordpress.org/plugins/visual-form-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-form-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-form-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-form-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-form-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-form-builder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-visual-form-builder-additional-classes-for-css-styling/#post-2345537)
 * Status: resolved