1

I want to change out the footer and header for a minimized version but only on a certain CMS Page.

Is it possible to do this with the layout XML input field to remove the header/footer and add static blocks in their places?

I do not have access to Magento files.

2 Answers 2

1

Not sure what theme you are using and may need to find out what your block names are but this should do the trick

<reference name="before_body_end">
    <block type="cms/block" name="custom_footer">
        <action method="setBlockId">
        <block_id>your-static-block</block_id>
        </action>
    </block>
</reference>
<reference name="footer">
        <remove name="footer_links" />
        <remove name="footer_links2" />
</reference>
5
  • Thanks for your answer, Dava. We're using a modified version of rwd. How can I get ahold of the block names without having access to the source files? Apr 23, 2019 at 12:54
  • But inserting content works fine, so I guess if everything else fails, I could hide the old footer with CSS. What is the reference to add something in front of the header, though? Apr 23, 2019 at 13:06
  • 1
    @NoahWetjen the reference for that is after_body_start Apr 23, 2019 at 13:30
  • after_body_start doesn't work for me. I'm using the same code, just changed _end to _start. Apr 23, 2019 at 14:01
  • @NoahWetjen that could mean its been removed as that works fine on my version of RWD Apr 24, 2019 at 15:24
0

To remove header & footer : 1: Update design with empty layout 2: add particular static block on cms by following way add below live in page content:

{{block type="cms/block" block_id="static-block-to-use-in-cms-page"}}

Let me know if you still have an issue in it

1
  • @noah-wetjen its perfect fit for your issue let me know if its not working. Apr 28, 2019 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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