Title: Field Width Problem
Last modified: September 1, 2016

---

# Field Width Problem

 *  Resolved [jennzy](https://wordpress.org/support/users/jennzy/)
 * (@jennzy)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/field-width-problem/)
 * HI,
 * I have been using Carbon fields for a few day now but there is one thing that
   just will not work. I have the includes/post-meta.php set up from functions.php
   with use Carbon_Fields\Container;
    use Carbon_Fields\Field; use Carbon_Fields\
   Field\Complex_Field; at the top, the set_rows works but the set_width just will
   not happen!
 * Container::make(‘post_meta’, ‘einrichtung’)
    ->show_on_template(‘page-einrichtung.
   php’) ->add_fields(array( Field::make(‘text’, ‘crb_einrichtung_header’)->set_width(
   50), Field::make(‘text’, ‘crb_einrichtung_name_01’)->set_width(50, Field::make(‘
   textarea’, ‘crb_einrichtung_text_01’) ->set_rows(2), Field::make(‘text’, ‘crb_einrichtung_name_02’),
   Field::make(‘textarea’, ‘crb_einrichtung_text_02’) ->set_rows(2), Field::make(‘
   text’, ‘crb_einrichtung_name_03’), Field::make(‘textarea’, ‘crb_einrichtung_text_03’)-
   >set_rows(2), Field::make(‘text’, ‘crb_einrichtung_name_04’), Field::make(‘textarea’,‘
   crb_einrichtung_text_04’) ->set_rows(2), Field::make(‘text’, ‘crb_einrichtung_name_05’),
   Field::make(‘textarea’, ‘crb_einrichtung_text_05’) ->set_rows(2), Field::make(‘
   text’, ‘crb_einrichtung_name_06’), Field::make(‘textarea’, ‘crb_einrichtung_text_06’)-
   >set_rows(2), Field::make(‘text’, ‘crb_einrichtung_name_07’), Field::make(‘textarea’,‘
   crb_einrichtung_text_07’) ->set_rows(2), ));
 * please advise,
 * Jeny
 * [https://wordpress.org/plugins/carbon-fields/](https://wordpress.org/plugins/carbon-fields/)

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

 *  Plugin Author [htmlBurger](https://wordpress.org/support/users/htmlburger/)
 * (@htmlburger)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/field-width-problem/#post-7603845)
 * Hey [@jennzy](https://wordpress.org/support/users/jennzy/), sorry for your trouble.
 * Can you please try the following `post-meta.php` code and tell us if you still
   have this issue:
 *     ```
       <?php
   
       use Carbon_Fields\Container\Container;
       use Carbon_Fields\Field\Field;
   
       Container::make('post_meta', 'einrichtung')
       ->show_on_post_type('page')
       ->add_fields(array(
       	Field::make('text', 'crb_einrichtung_header')
       		->set_width(50),
       	Field::make('text', 'crb_einrichtung_name_01')
       		->set_width(50),
       	Field::make('textarea', 'crb_einrichtung_text_01')
       		->set_rows(2),
       	Field::make('text', 'crb_einrichtung_name_02'),
       	Field::make('textarea', 'crb_einrichtung_text_02')
       		->set_rows(2),
       	Field::make('text', 'crb_einrichtung_name_03'),
       	Field::make('textarea', 'crb_einrichtung_text_03')
       		->set_rows(2),
       	Field::make('text', 'crb_einrichtung_name_04'),
       	Field::make('textarea', 'crb_einrichtung_text_04')
       		->set_rows(2),
       	Field::make('text', 'crb_einrichtung_name_05'),
       	Field::make('textarea', 'crb_einrichtung_text_05')
       		->set_rows(2),
       	Field::make('text', 'crb_einrichtung_name_06'),
       	Field::make('textarea', 'crb_einrichtung_text_06')
       		->set_rows(2),
       	Field::make('text', 'crb_einrichtung_name_07'),
       	Field::make('textarea', 'crb_einrichtung_text_07')
       		->set_rows(2),
       ));
       ```
   
 * The result should look like this: [https://cloud.githubusercontent.com/assets/1612178/17132708/9932d8d6-532b-11e6-8b8f-3578e305b767.jpg](https://cloud.githubusercontent.com/assets/1612178/17132708/9932d8d6-532b-11e6-8b8f-3578e305b767.jpg)
 *  Thread Starter [jennzy](https://wordpress.org/support/users/jennzy/)
 * (@jennzy)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/field-width-problem/#post-7603887)
 * Brilliant that resolved it, it was
 * use Carbon_Fields\Container\Container;
    use Carbon_Fields\Field\Field;
 * instead of
 * use Carbon_Fields\Container;
    use Carbon_Fields\Field; use Carbon_Fields\Field\
   Complex_Field;
 * thanks

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

The topic ‘Field Width Problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/carbon-fields_cacbcc.svg)
 * [Carbon Fields](https://wordpress.org/plugins/carbon-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/carbon-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/carbon-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/carbon-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/carbon-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/carbon-fields/reviews/)

## Tags

 * [formating](https://wordpress.org/support/topic-tag/formating/)
 * [layout](https://wordpress.org/support/topic-tag/layout/)

 * 2 replies
 * 2 participants
 * Last reply from: [jennzy](https://wordpress.org/support/users/jennzy/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/field-width-problem/#post-7603887)
 * Status: resolved