Add static block to home page The Next CEO of Stack OverflowPunch hole in FPC for a static block inside a CMS page, without a custom moduleAdd static cms block in home pageUsing variables in static block for email templatewhere do I set width for product details after removing sidebar blockWidgets + Static Block issueTime Widgets or Static BlocksWidget Locations & Static Blocks (not working)Add line break to static blockHow to move cms static block widget in Magento 2.1How to add static block to home page not wrapped in classes?
Can Sri Krishna be called 'a person'?
How can the PCs determine if an item is a phylactery?
Horror film about a man brought out of cryogenic suspension without a soul, around 1990
Simplify trigonometric expression using trigonometric identities
Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico
How to pronounce fünf in 45
Incomplete cube
What steps are necessary to read a Modern SSD in Medieval Europe?
Another proof that dividing by 0 does not exist -- is it right?
How do I keep Mac Emacs from trapping M-`?
Is it reasonable to ask other researchers to send me their previous grant applications?
Why did early computer designers eschew integers?
Car headlights in a world without electricity
Why can't we say "I have been having a dog"?
Can you teleport closer to a creature you are Frightened of?
Is the sample correlation always positively correlated with the sample variance?
Find the majority element, which appears more than half the time
A hang glider, sudden unexpected lift to 25,000 feet altitude, what could do this?
Raspberry pi 3 B with Ubuntu 18.04 server arm64: what pi version
What is the difference between 'contrib' and 'non-free' packages repositories?
How to unfasten electrical subpanel attached with ramset
Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact
Can I cast Thunderwave and be at the center of its bottom face, but not be affected by it?
Is the offspring between a demon and a celestial possible? If so what is it called and is it in a book somewhere?
Add static block to home page
The Next CEO of Stack OverflowPunch hole in FPC for a static block inside a CMS page, without a custom moduleAdd static cms block in home pageUsing variables in static block for email templatewhere do I set width for product details after removing sidebar blockWidgets + Static Block issueTime Widgets or Static BlocksWidget Locations & Static Blocks (not working)Add line break to static blockHow to move cms static block widget in Magento 2.1How to add static block to home page not wrapped in classes?
I have looked and tried methods in other topics but I cannot find anything that will work.
I want to keep my homepage organized and I would like to add "sections" like about us and contact section to the home page.
I tried adding the the code like
<div class="row">
<div class="col-sm-7">
block type="cms/block" block_id="about_us"
</div>
</div>
But isnt showing the content fromt he block. I tried doing it with a widget and it did show but it was stuck in the container and the bg image was not going full width.
Any help would be appreciated.
static-block
add a comment |
I have looked and tried methods in other topics but I cannot find anything that will work.
I want to keep my homepage organized and I would like to add "sections" like about us and contact section to the home page.
I tried adding the the code like
<div class="row">
<div class="col-sm-7">
block type="cms/block" block_id="about_us"
</div>
</div>
But isnt showing the content fromt he block. I tried doing it with a widget and it did show but it was stuck in the container and the bg image was not going full width.
Any help would be appreciated.
static-block
add a comment |
I have looked and tried methods in other topics but I cannot find anything that will work.
I want to keep my homepage organized and I would like to add "sections" like about us and contact section to the home page.
I tried adding the the code like
<div class="row">
<div class="col-sm-7">
block type="cms/block" block_id="about_us"
</div>
</div>
But isnt showing the content fromt he block. I tried doing it with a widget and it did show but it was stuck in the container and the bg image was not going full width.
Any help would be appreciated.
static-block
I have looked and tried methods in other topics but I cannot find anything that will work.
I want to keep my homepage organized and I would like to add "sections" like about us and contact section to the home page.
I tried adding the the code like
<div class="row">
<div class="col-sm-7">
block type="cms/block" block_id="about_us"
</div>
</div>
But isnt showing the content fromt he block. I tried doing it with a widget and it did show but it was stuck in the container and the bg image was not going full width.
Any help would be appreciated.
static-block
static-block
edited 13 hours ago
Muhammad Anas
330115
330115
asked Apr 27 '17 at 13:24
WebbieWorksWebbieWorks
133
133
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Just need to add below code in CMS Page with you block id
widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="18"
add a comment |
Use
<?php echo $this->getChildHtml('about_us'); ?>
For getting static Block from a .phtml file block type="cms/block" block_id="about_us" is used to get static block in magento ver 1.9.2.4 or before.
add a comment |
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f172075%2fadd-static-block-to-home-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just need to add below code in CMS Page with you block id
widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="18"
add a comment |
Just need to add below code in CMS Page with you block id
widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="18"
add a comment |
Just need to add below code in CMS Page with you block id
widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="18"
Just need to add below code in CMS Page with you block id
widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="18"
answered Apr 27 '17 at 13:29
Divyansh BajajDivyansh Bajaj
1817
1817
add a comment |
add a comment |
Use
<?php echo $this->getChildHtml('about_us'); ?>
For getting static Block from a .phtml file block type="cms/block" block_id="about_us" is used to get static block in magento ver 1.9.2.4 or before.
add a comment |
Use
<?php echo $this->getChildHtml('about_us'); ?>
For getting static Block from a .phtml file block type="cms/block" block_id="about_us" is used to get static block in magento ver 1.9.2.4 or before.
add a comment |
Use
<?php echo $this->getChildHtml('about_us'); ?>
For getting static Block from a .phtml file block type="cms/block" block_id="about_us" is used to get static block in magento ver 1.9.2.4 or before.
Use
<?php echo $this->getChildHtml('about_us'); ?>
For getting static Block from a .phtml file block type="cms/block" block_id="about_us" is used to get static block in magento ver 1.9.2.4 or before.
answered Apr 27 '17 at 13:37
Lalit838Lalit838
313112
313112
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f172075%2fadd-static-block-to-home-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
