I think the main problem here is that these dismissable notices are NOT dismissable actually. If you click dismiss and refresh the page, they will appear again. If you want it to really disappear, you need to write an own custom solution to store the state of your notice. Why?

This thing should be easy, for example adding a data attribute to the notice div like this: data-dismiss="forever"