0

This is my Local.XML

<reference name="header">
        <block type="cms/block" name="topsocial" as="topsocial">
        <action method="setBlockId"><block_id>topsocial</block_id>
        </action>
        </block>
</reference>

This is my header.phtml placement

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

I created the static block in the admin panel with the same name. May I ask why its not working? The block is 4 LI's with Font Awesome icons.

4
  • change alias name and name of block
    – Amit Bera
    Nov 13 '14 at 18:44
  • where have you added that code?
    – Amit Bera
    Nov 13 '14 at 18:45
  • Its in my header.phtml. Change alias and name? Do they conflict? Nov 13 '14 at 18:48
  • no..just change change alias name and name of block for any reason same block name is used in other page
    – Amit Bera
    Nov 13 '14 at 18:51
1

I figured it out. The error was in my xml. I forgot to wrap my reference tags inside of default tags.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.