Support › Meta Box Columns › column still takes its width space when visibility and display hiddenResolved
I am making dynamic row layout and want the items not visible conditionally to do not take column width space as blank space.
Bellow is example how my layout is shown now:
<div class="rwmb-column rwmb-column-3 "> <div class="rwmb-field rwmb-taxonomy_advanced-wrapper" data-visible="hidden" style="display: none;"> <div class="rwmb-label"> <label for="twof_group_for_mums_featured_twof_select_product_category_for_button_link">Select product category for button link</label>
how can i make
style="display: none;" to be passed to
<div class="rwmb-column rwmb-column-3 "> and hide it?
It is the standard behavior of the WordPress admin column. For example, if there is no post that has a category the column is still displayed. If you want to hide an admin column, please uncheck it in the Screen Options area.
You have misunderstood me i suppose.
In the image you can see that 2nd option is selected , and the other 2 options that take 3col width are hidden with conditions, i would want to achieve that they would not take that space if they are not visible and that selected option would always appear next to select option field. example bellow
Sorry for the misunderstanding, the style "display: none" is added to the wrapper element inside the rwmb-column element so it is not possible to hide the column if the wrapper is hidden. I will inform the development team to consider supporting this case in future updates.
Hi Peter ,
any news about this?
Problem I am having is this : I am using Open Maps and I am displaying all fields in the backend, a lot of times half of them are empty, those I do not want to show, when I hide them with the conditional the form looks somehow unfinished and is is full of empty space, looks terrible
Is this an issue? I can't find it in Github, although I found two closed issues from 2015-2016. I am having this exact problem. The
display:none; should be on the outer
rwmb-column. It does little good on the inner
rwmb-field if the outer column is mkes space for nothing. Since I'm using radio buttons, there is no UX problem. If there is an issue in Github please let me know. Big gaps look odd and users have been disliking it for years. Thanks much.