Add static block to home pagePunch 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?
Could the museum Saturn V's be refitted for one more flight?
What is a romance in Latin?
How to prevent "they're falling in love" trope
Is "remove commented out code" correct English?
How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?
Is it logically or scientifically possible to artificially send energy to the body?
How badly should I try to prevent a user from XSSing themselves?
Is there an expression that means doing something right before you will need it rather than doing it in case you might need it?
A category-like structure without composition?
Assassin's bullet with mercury
Can compressed videos be decoded back to their uncompresed original format?
How could indestructible materials be used in power generation?
Should I tell management that I intend to leave due to bad software development practices?
Can we compute the area of a quadrilateral with one right angle when we only know the lengths of any three sides?
Plagiarism or not?
Avoiding direct proof while writing proof by induction
How seriously should I take size and weight limits of hand luggage?
Why no variance term in Bayesian logistic regression?
Am I breaking OOP practice with this architecture?
Why do bosons tend to occupy the same state?
What method can I use to design a dungeon difficult enough that the PCs can't make it through without killing them?
In 'Revenger,' what does 'cove' come from?
Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?
iPad being using in wall mount battery swollen
Add static block to home page
Punch 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 2 days ago
Muhammad Anas
350115
350115
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 |
Your Answer
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