1

I'd like to add a static block above the content on every page.

Header Header

I've tried adding these to my local.xml but the block appears in the wrong place:

<default>
    <reference name="top.links">
        <block type="cms/block" name="head_images ">
            <action method="setBlockId"><value>head_images</value></action>
        </block>
    </reference>
</default>

And

<default>
    <reference name="after_body_start">
        <block type="cms/block" name="head_images ">
            <action method="setBlockId"><value>head_images</value></action>
        </block>
    </reference>
</default>

Any ideas?

1

You can try Widget for this.

Create a widget and set Type CMS Static Block under frontend Properties

In Layout Updates you can set

Display on: All Pages
Block Reference: Main content area 

Under widget option tab select your static block.

Hope above will help!

  • Worked perfectly – 07lodgeT Mar 5 '18 at 8:28

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.