Magento – Adding Static Block content to a Page

Add Magento static blocks to your page easily! Simply copy this line of code below where you want the static block to appear and change the ‘identifier’ to the identifier of the static block you created. That’s it!

 

37 thoughts on “Magento – Adding Static Block content to a Page”

  1. Is there a reason I shouldn’t just use this method?

    {syntaxhighlighter brush: xml}

    {{block type=”cms/block” block_id=”my_block” template=”cms/content.phtml”}}

    {/syntaxhighlighter}

  2. This was really helpful! Thanks for posting it. (You probably already know how hard it is to find concise Magento solutions like this!)

  3. Hi Richard thanks very much for this. It is a clear and straight to the point instruction (unlike many other magento guides out there)

    Could you please tell me what I would need to do to add something just above the footer of all pages (I would like to have a paypal verified image)

    I am new to magento and still learning coding, it is quite confusing.

    Thanks again

  4. Hi Richard, great post!! got a bit of a headache tho 🙁

    how can you make CMS block appear above a category page layout?

    For example: if you have 2columns-left set as your category page layout how can i make a CMS block appear above this layout? and also be able to add a different block to each category page via the admin panel?

    here is my problem http://gogglefirm.com/snow.html

    as you can see i have the static block in the page but i want it to clear the left col and main col.

    any ideas

    Cheers

    Craig

  5. Hi. Can I have one question? There are possibility to use static block in product description? When I put

    {syntaxhighlighter brush: xml}

    {{block type=”cms/block” block_id=”dima_test” template=”cms/content.phtml”}}

    {/syntaxhighlighter}

    to them I see only this text, no block content 🙁

  6. I found solution it is necessary only add this two lines in the proper place into app/code/core/Mage/Catalog/Helper/Output.php to method productAttribute()

    {syntaxhighlighter brush: php}

    $processor = Mage::getModel(‘core/email_template_filter’);

    $attributeHtml = $processor->filter($attributeHtml);

    {/syntaxhighlighter}

  7. Thanks Richard, I can’t count the number of attempts I have made using various code from more than I can count sites/tutorials and yours is the first that has worked . I finally have additional content added to my site

  8. i have static footer blocks with relevant SEO text for certain pages. It was working fine and all of a sudden all the static footer blocks disappeared. I cant seem to get it back. This is the code U used:

    {syntaxhighlighter brush: xml}

    home_page_footer_seo_block

    {/syntaxhighlighter}

    I added this code in the layout update XML section in the design tab of the homepage.

    Any help is appreciated

  9. Hello

    i am new in magento and learn all things, but i have question

    1) i create one “Education price” name page

    2) i Create a Static Block Name “Prices” in that static block i write some content and also “click here” link

    3) i want to show the “Education price” in click of “click here” link

    so how can i do that plz help me

    Thank YOu

    Amrish

  10. Hello,

    I am totaly new in majento developing!!!

    Now, Ia have started to understand the admin panel configuration as well client side effect.

    I feel good to see all of u here for help me!!!

    Thanks dudes!!!

    Appreciate!!!

Leave a Reply to darmant Cancel reply

Your email address will not be published. Required fields are marked *