Last active
December 14, 2015 07:39
-
-
Save cobbman/5052291 to your computer and use it in GitHub Desktop.
Adding a CMS Static Block to your XML file. xml layout files are located under app/design/default/<your-theme>/layout/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cms_index_index> | |
<reference name="content"> | |
<block type="cms/block" name="static_block_name" before="-"> | |
<action method="setBlockId"><block_id>static_block_name</block_id></action> | |
</block> | |
</reference> | |
</cms_index_index> | |
notes: | |
<cms_index_index> tells it to only show up on the front page | |
before="-" tells it to show before all the other blocks on that page (at the top). To put it at the bottom, change it to after="-" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment