Is there a recommended solution for having custom fields in columns and hiding the entire column for empty custom fields without causing blank columns? This particular solution would be within a tab, currently I'm using one_third in the shortcode but when a custom field is in one_third_last the column is blank and it causes odd spacing since the next column doesn't float but goes to the next line.
Thanks Shane, I do have conditionals for the custom fields set up using the NOT empty function, so the conditionals do hide the specific column. My issue is that within a tab, using 3 column layout and having to use one_third_last is that when a custom field falls on the one_third_last column and has no value, that column ends up being empty...but then the next column doesn't wrap and jumps to the next line as one_third. Is there a way to have all columns flex/ float left so that when a column has an empty custom field value it is hidden and the next visible column floats to take over that empty column?
Hi Shane, I'm using the built-in wordpress shortcode columns in the text editor of (one half, one third, etc.). The issue is requiring the "last" shortcode for a custom field that ends up be empty and therefore causes an empty column.
As I'm thinking, Is it possible to just set up a custom div before each conditional with a width of 33% and have each column float left? Then if the custom field within the column was empty, the next element would simply float and take over that column? Then using media queries per device if needed to handle any issues with width.
You can do this. A better solution is to use the bootstrap columns and just add a conditional around each of the divs, so if the field is empty it wont show up.
Shane, unfortunately the site is using the divi theme and bootstrap doesn't always place nice with Divi. So it most likely wouldn't be best practice to use bootstrap in this case, correct? That definitely would have been my best option if not for that conflict which is documented in toolset and which is why I avoided it.