Detect if it is in publish mode and hide some text