Hide div when no text added
Permalink
Is it possible to hide a div from the browser if the editable areas within it have not been used (ie they are empty)? But they are available in EditMode and become visible automatically upon text being added to them?
Maybe put the divs inside the editable area?
Thanks. Will try that.
I use the following code in my themes. First is for a global area:
Thanks Steve.
Yeah its a bit of a pain because the areas the client will be populating with different lists has hardcode svg icons.
Yeah its a bit of a pain because the areas the client will be populating with different lists has hardcode svg icons.
Forgot to mention, you should probably wrap the code in a row.