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
- The topic ‘Field Width Problem’ is closed to new replies.