I'm using QGIS Version 3.22.4. I'm using the qgis2web plugin to create a web map from a layer in QGIS with OpenLayers export. It has a number of fields, some are complete with data, while others can have null values. Then with popups for points on my map, there are displayed field labels and a blank space for the null values. I would like to hide these fields when there is no data.
I know I can turn off 'inline' labels to 'no label' for different fields when creating the map using the qgis2web plugin, but this then leaves vertical gaps between lines in the popup which I could do without.
And I know the qgis2web.js file can also be edited, and there was a post with code to edit, but it was nearly three years ago and it doesn't work for me which I assume may be due to software version changes?
I am a novice with QGIS.