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
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>
-
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?Noah Wetjen– Noah Wetjen2019年04月23日 12:54:45 +00:00Commented 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?Noah Wetjen– Noah Wetjen2019年04月23日 13:06:23 +00:00Commented Apr 23, 2019 at 13:06
-
1@NoahWetjen the reference for that is after_body_startDava Gordon– Dava Gordon2019年04月23日 13:30:09 +00:00Commented Apr 23, 2019 at 13:30
-
after_body_startdoesn't work for me. I'm using the same code, just changed_endto_start.Noah Wetjen– Noah Wetjen2019年04月23日 14:01:46 +00:00Commented Apr 23, 2019 at 14:01 -
@NoahWetjen that could mean its been removed as that works fine on my version of RWDDava Gordon– Dava Gordon2019年04月24日 15:24:10 +00:00Commented Apr 24, 2019 at 15:24
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
-
@noah-wetjen its perfect fit for your issue let me know if its not working.Hassan Ali Shahzad– Hassan Ali Shahzad2019年04月28日 05:47:14 +00:00Commented Apr 28, 2019 at 5:47
Explore related questions
See similar questions with these tags.