- Issue created by @SirClickALot
- 🇮🇳India ravi kant Jaipur
@SirClickalot
There may be different possible situations.
The most common is that region is considering block availability which means block is have some invisible white space or values. - 🇬🇧United Kingdom SirClickALot Somerset
Thanks Ravi → ,
I had figured that was the problem and there was indeed some 'white space' being thrown out by a view.
This seems to happen all the time with Views and simply setting
Hide block if the view output is empty: Yes
just does not work.HOWEVER, for anyone else suffering from this frustration with Views, the Views Minimum → module completely solves the issue.
Outstanding work Kevin Quillen (kevinquillen) → !
I use it alongside the Block Visibility Groups → module to great effect.
- 🇩🇰Denmark ressa Copenhagen
It looks like empty rows can be output, even if "Hide if empty" is enabled for a views field: 🐛 "Hide if empty" ignored for fields Active . Maybe this could also lead to empty blocks getting rendered?
- 🇮🇳India ravi kant Jaipur
@SirClickalot
If you are creating template in your theme for this views then you may try
render|trim
as below<div{{ row.attributes.addClass(row_classes) }}> {{- row.content|render|trim -}} </div>