Title: Class for each button
Last modified: August 30, 2016

---

# Class for each button

 *  [wooody](https://wordpress.org/support/users/wooody/)
 * (@wooody)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/class-for-each-button/)
 * Hi,
    I created so each button have new input for Class name..
 * changes in button-v4.php
 * Line 99 insert:
    <td valign=”top”> <label>Class</label> <input type=”text” value
   =”<?php echo esc_attr( $field[‘value’][‘class’] ); ?>” id=”” name=”<?php echo
   $field_name; ?>[class]” /> </td>
 * change line 195
    $value = ‘‘ . $button[‘text’] . ‘
   ‘;
 * Regards,
 * [https://wordpress.org/plugins/advanced-custom-fields-link-picker-field/](https://wordpress.org/plugins/advanced-custom-fields-link-picker-field/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [wooody](https://wordpress.org/support/users/wooody/)
 * (@wooody)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/class-for-each-button/#post-6228131)
 * Change line 195
    `$value = '<a href="' . $link .'"' . $target . ' class="' . 
   $button['class'] . '">' . $button['text'] . '</a>';`

Viewing 1 replies (of 1 total)

The topic ‘Class for each button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-custom-fields-link-picker-
   field.svg)
 * [Advanced Custom Fields: Link Picker Field](https://wordpress.org/plugins/advanced-custom-fields-link-picker-field/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-link-picker-field/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-link-picker-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-link-picker-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-link-picker-field/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [wooody](https://wordpress.org/support/users/wooody/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/class-for-each-button/#post-6228131)
 * Status: not resolved