Magento – How to customize global message HTML

global-messagesmagento-1messages

How do I customize the HTML for the global messages block? it's called in most templates:

<?php echo $this->getChildHtml('global_messages') ?>

But I can't find reference to what is generating the HTML anywhere – enabling template paths does not show if it is using a template or not.

Best Answer

The block responsible for generating messages as well as HTML format is under core/Mage/Core/Block/Messages.php which extends Mage_Core_Block_Template class.

All functions are within that class as well as HTML tags that are used to generate messages.

Related Topic