Why my homepage doesn't display a cms block content?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
3
down vote
favorite
I have programmatically created a CMS block, which is working fine. I've added some content into it and trying to display it in my homepage.
My block identifier is this_is_a_block_identifier
. I'm trying to call it in content->pages->home page->edit
by adding:
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
After, I'm clearing a cache. But instead of displaying a content, it just displays a text, which is that block class calling (as I showed above).
Why?
magento2 cms cms-block
add a comment |Â
up vote
3
down vote
favorite
I have programmatically created a CMS block, which is working fine. I've added some content into it and trying to display it in my homepage.
My block identifier is this_is_a_block_identifier
. I'm trying to call it in content->pages->home page->edit
by adding:
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
After, I'm clearing a cache. But instead of displaying a content, it just displays a text, which is that block class calling (as I showed above).
Why?
magento2 cms cms-block
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have programmatically created a CMS block, which is working fine. I've added some content into it and trying to display it in my homepage.
My block identifier is this_is_a_block_identifier
. I'm trying to call it in content->pages->home page->edit
by adding:
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
After, I'm clearing a cache. But instead of displaying a content, it just displays a text, which is that block class calling (as I showed above).
Why?
magento2 cms cms-block
I have programmatically created a CMS block, which is working fine. I've added some content into it and trying to display it in my homepage.
My block identifier is this_is_a_block_identifier
. I'm trying to call it in content->pages->home page->edit
by adding:
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
After, I'm clearing a cache. But instead of displaying a content, it just displays a text, which is that block class calling (as I showed above).
Why?
magento2 cms cms-block
edited Aug 28 at 9:28


Qaisar Satti
24.9k115398
24.9k115398
asked Aug 28 at 9:15
HELPME
497
497
add a comment |Â
add a comment |Â
4 Answers
4
active
oldest
votes
up vote
4
down vote
To call static block in cms page
block id="this_is_a_block_identifier"
Reference
add a comment |Â
up vote
2
down vote
It seems you have forget to use " before MagentoCms so please use below code .
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
add a comment |Â
up vote
1
down vote
Looking at your question, it seems that you have typo mistake in calling the block.
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
should be
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
Notice the double quote before Magento
.
I did that, but this doesn't help. I got just a text in my home page.
– HELPME
Aug 28 at 10:41
add a comment |Â
up vote
0
down vote
A possibility is that your forgot to enable the block for the store view of your home page. There's a list widget just above the block content of the block edit page. You can use Ctrl + click to select multiple store view where the block should show up.
add a comment |Â
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
To call static block in cms page
block id="this_is_a_block_identifier"
Reference
add a comment |Â
up vote
4
down vote
To call static block in cms page
block id="this_is_a_block_identifier"
Reference
add a comment |Â
up vote
4
down vote
up vote
4
down vote
To call static block in cms page
block id="this_is_a_block_identifier"
Reference
To call static block in cms page
block id="this_is_a_block_identifier"
Reference
answered Aug 28 at 9:37


AddMage
4194
4194
add a comment |Â
add a comment |Â
up vote
2
down vote
It seems you have forget to use " before MagentoCms so please use below code .
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
add a comment |Â
up vote
2
down vote
It seems you have forget to use " before MagentoCms so please use below code .
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
add a comment |Â
up vote
2
down vote
up vote
2
down vote
It seems you have forget to use " before MagentoCms so please use below code .
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
It seems you have forget to use " before MagentoCms so please use below code .
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
answered Aug 28 at 9:22
Ansar Husain
790216
790216
add a comment |Â
add a comment |Â
up vote
1
down vote
Looking at your question, it seems that you have typo mistake in calling the block.
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
should be
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
Notice the double quote before Magento
.
I did that, but this doesn't help. I got just a text in my home page.
– HELPME
Aug 28 at 10:41
add a comment |Â
up vote
1
down vote
Looking at your question, it seems that you have typo mistake in calling the block.
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
should be
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
Notice the double quote before Magento
.
I did that, but this doesn't help. I got just a text in my home page.
– HELPME
Aug 28 at 10:41
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Looking at your question, it seems that you have typo mistake in calling the block.
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
should be
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
Notice the double quote before Magento
.
Looking at your question, it seems that you have typo mistake in calling the block.
block class=MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
should be
block class="MagentoCmsBlockBlock" block_id="this_is_a_block_identifier"
Notice the double quote before Magento
.
answered Aug 28 at 9:19


Mohit Kumar Arora
5,24041332
5,24041332
I did that, but this doesn't help. I got just a text in my home page.
– HELPME
Aug 28 at 10:41
add a comment |Â
I did that, but this doesn't help. I got just a text in my home page.
– HELPME
Aug 28 at 10:41
I did that, but this doesn't help. I got just a text in my home page.
– HELPME
Aug 28 at 10:41
I did that, but this doesn't help. I got just a text in my home page.
– HELPME
Aug 28 at 10:41
add a comment |Â
up vote
0
down vote
A possibility is that your forgot to enable the block for the store view of your home page. There's a list widget just above the block content of the block edit page. You can use Ctrl + click to select multiple store view where the block should show up.
add a comment |Â
up vote
0
down vote
A possibility is that your forgot to enable the block for the store view of your home page. There's a list widget just above the block content of the block edit page. You can use Ctrl + click to select multiple store view where the block should show up.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
A possibility is that your forgot to enable the block for the store view of your home page. There's a list widget just above the block content of the block edit page. You can use Ctrl + click to select multiple store view where the block should show up.
A possibility is that your forgot to enable the block for the store view of your home page. There's a list widget just above the block content of the block edit page. You can use Ctrl + click to select multiple store view where the block should show up.
answered Aug 28 at 11:42
Jacco van Dorp
1013
1013
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f239851%2fwhy-my-homepage-doesnt-display-a-cms-block-content%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password