Removable element


#1

Trying to figure out how to make an element removable by user. In this instance, I’ve created a fixed alert bar at the bottom of home page with class of cms-editable. Client can write alerts and add content but can’t figure how to remove the bar entirely when there are no alerts to show. Any ideas here? Thanks.


#2

Have you considered using a bit of JavaScript to check for items and, if none are found, hide it?

Coupled with one of these techniques, you could ensure it’s always available in the editor but only shows up on the live site when an item exists in it.

Hope that helps!