• Resolved Dave Mackey

    (@davidshq)


    I’m not sure if I’m understanding field types correctly…

    There is a text_small and a text_medium field type but no text_large field type?

    And is there a way to adjust the width of the text_small and text_medium field types?

    For example, could one do away with _small and _medium and just have text like so:

    $cmb->add_field( array(
     'name'    => 'Test Text',
     'desc'    => 'field description (optional)',
     'default' => 'standard value (optional)',
     'width' => '25%',
     'id'      => 'wiki_test_text',
     'type'    => 'text_'
     ) );

    https://wordpress.org/plugins/cmb2/

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

The topic ‘Setting Text Field Width?’ is closed to new replies.