• Resolved shimu666

    (@shimu666)


    Hello,

    I don’t know if it’s possible or not but in my profile form i have a checkbox column with 3 different options.
    it’s a transportation checkbox with bike, car, truck.
    i succed added class to each option to display an image instead of checkbox icon.

    But i would like the output to display this classes (images) instead of text.

    The output code is `default:

    $output .= ‘<div class=”um-field’ . $classes . ‘”‘ . $conditional . ‘ data-key=”‘.$key.'”>’;

    if ( isset( $data[‘label’] ) ) {
    $output .= $this->field_label($label, $key, $data);
    }

    $res = stripslashes( $this->field_value( $key, $default, $data ) );

    $output .= ‘<div class=”um-field-area”>’;
    $output .= ‘<div class=”um-field-value”>’ . $res . ‘</div>’;
    $output .= ‘</div>’;

    $output .= ‘</div>’;

    break;`

    Do you have an idea how i could output this.

    here the screen of edit profile mode
    [URL=http://www.hostingpics.net/viewer.php?id=896833Capturede769cran20150812a768140654.png][IMG]http://img11.hostingpics.net/pics/896833Capturede769cran20150812a768140654.png[/IMG][/URL]

    Thanks in advance for your help 🙂

    https://wordpress.org/plugins/ultimate-member/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Add class to checkbox profile output’ is closed to new replies.