The content block is a special block known as the core/text_list (PHP class Mage_Core_Block_Text_List ). These blocks will automatically display any child blocks that are added to them.
The header block, on the other hand, is a page/html_header (PHP class Mage_Page_Block_Html_Header ). This block class inherits from Mage_Core_Block_Template , making it a core/template block. Template blocks will only display sub blocks if their corresponding phtml template requests a block. So, adding your block to the header, you only do half the work you need. You need to create your own phtml template .
The easiest way to do this (post 1.4.1.1 - in your own theme, create a file in
template/page/html/header.phtml
And then at the end of this file add
<?php echo $this->getChildHtml('how-it-works-button'); ?>
Assuming you added a block to the title block through the xml layout, this should display your template.
source share