sri
sri

Reputation: 91

Static block not showing up in CMS page

I just started working on magento/admin. I am trying to show my static block in one of my CMS pages, but it is not working. I tried to find out answer in google and stack exchange but no luck! Can anyone please help.Thanks.

Below are details: This is my static block

enter image description here

This is my CMS page: I am able to see the text "Yes!" though.

enter image description here

enter image description here

Final output: That blue box is my CSS. (jfyi).

enter image description here

Upvotes: 1

Views: 7120

Answers (5)

Kirti Nariya
Kirti Nariya

Reputation: 247

Solution:

Step 1)Go to admin.

Step 2)Open Top menu System->Permissions->Blocks.

Step 3)click "Add New Block".

write your "Block Name" and Is Allowed "Yes".

Note: Block Name is type of your block for example "cms/block"
after Save Block.  

Step 4)Clear cache and refresh front page. Now Block is showing.

Done.

Upvotes: 0

WEBSHOT
WEBSHOT

Reputation: 314

If you use the latest Magento version 1.9.2.2 that includes the latest patches, then you need to add first the block to Magento white list in teh backend: System->Permissions->Block.

See this article: http://www.dudesquare.nl/blog/2015/10/31/static-block-shortcodes-not-working-1-9-2-2/

Upvotes: 5

urfusion
urfusion

Reputation: 5501

Try to add static blocks through Layout Update XML in CMS Pages use something like this code. Add this code in your CMS page design tab.

<reference name="content">
    <block type="cms/block" name="block.name">
        <action method="setBlockId">
            <block_id>block_id</block_id>
        </action>
    </block>

</reference>

Upvotes: 0

Mohit Kumar Arora
Mohit Kumar Arora

Reputation: 2214

Please check following:

  • Whether you had editor enabled, while calling static block. If yes, please click on Show/Hide Editor button and check what code is there in text area while editor mode off.
  • If above does not work, then go to System >> Configuration >> Advanced (Developer) and under Log Settings, Enable Logs. Then refresh cms page in frontend.

I hope this will help you resolve your issue. Please let me know if you find any problem.

Upvotes: 0

Wiram Rathod
Wiram Rathod

Reputation: 1919

Please set different identifier in static block than CMS page. I think CMS page and block identifier same so may be block not display on CMS page.

Also select all store views in static block may be your store is wrong.

And finally remove all cache and refresh all index.

Upvotes: 1

Related Questions