Move static block on category pageMove custom block immediate after navMagento category layout update: Set “Position of attribute in layered navigation block”Magento 2: How to move category description to main columnCustom Category Page Layout Static Block to bottomMagento 2 checkout - move Shipping methods blockMagento2 move the block from right to left without removingMagento 2.2 how to move category title to above descriptionMagento 2 - Rearranging basic xml layoutMagento 2 - Move Block Not WorkingHow to duplicate category title and move description below product grid
Why did Varys remove his rings?
How to continually let my readers know what time it is in my story, in an organic way?
What information exactly does an instruction cache store?
Does addError() work outside of triggers?
Will consteval functions allow template parameters dependent on function arguments?
Why would someone open a Netflix account using my Gmail address?
Do people who work at research institutes consider themselves "academics"?
Were any toxic metals used in the International Space Station?
Why did the metro bus stop at each railway crossing, despite no warning indicating a train was coming?
Assembly writer vs compiler
Why doesn't Iron Man's action affect this person in Endgame?
Does the wearer know what items are in which patch in the Robe of Useful items?
Does the Rogue's Reliable Talent feature work for thieves' tools, since the rogue is proficient in them?
Do high-wing aircraft represent more difficult engineering challenges than low-wing aircraft?
Given 0s on Assignments with suspected and dismissed cheating?
Wireless headphones interfere with Wi-Fi signal on laptop
Can I say: "When was your train leaving?" if the train leaves in the future?
My bread in my bread maker rises and then falls down just after cooking starts
Will the volt, ampere, ohm or other electrical units change on May 20th, 2019?
c++ conditional uni-directional iterator
Why is the Advance Variation considered strong vs the Caro-Kann but not vs the Scandinavian?
Why are lawsuits between the President and Congress not automatically sent to the Supreme Court
What was Varys trying to do at the beginning of S08E05?
Why would company (decision makers) wait for someone to retire, rather than lay them off, when their role is no longer needed?
Move static block on category page
Move custom block immediate after navMagento category layout update: Set “Position of attribute in layered navigation block”Magento 2: How to move category description to main columnCustom Category Page Layout Static Block to bottomMagento 2 checkout - move Shipping methods blockMagento2 move the block from right to left without removingMagento 2.2 how to move category title to above descriptionMagento 2 - Rearranging basic xml layoutMagento 2 - Move Block Not WorkingHow to duplicate category title and move description below product grid
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to have 2 pieces of static content on a category page. One directly beneath the category title and another below the product listings. I notice Categories have a "description" and support a static block, so my plan is to use "description" for one section of text and a static block for the other.
The problem I'm having is moving the static block with a layout update. What I'm doing is using the identifier
of the static block and a layout update like this:
<move element="test-category-block" destination="content" after="-"/>
However the static block is not moving. Any idea why not?
magento2 layout category
add a comment |
I'm trying to have 2 pieces of static content on a category page. One directly beneath the category title and another below the product listings. I notice Categories have a "description" and support a static block, so my plan is to use "description" for one section of text and a static block for the other.
The problem I'm having is moving the static block with a layout update. What I'm doing is using the identifier
of the static block and a layout update like this:
<move element="test-category-block" destination="content" after="-"/>
However the static block is not moving. Any idea why not?
magento2 layout category
add a comment |
I'm trying to have 2 pieces of static content on a category page. One directly beneath the category title and another below the product listings. I notice Categories have a "description" and support a static block, so my plan is to use "description" for one section of text and a static block for the other.
The problem I'm having is moving the static block with a layout update. What I'm doing is using the identifier
of the static block and a layout update like this:
<move element="test-category-block" destination="content" after="-"/>
However the static block is not moving. Any idea why not?
magento2 layout category
I'm trying to have 2 pieces of static content on a category page. One directly beneath the category title and another below the product listings. I notice Categories have a "description" and support a static block, so my plan is to use "description" for one section of text and a static block for the other.
The problem I'm having is moving the static block with a layout update. What I'm doing is using the identifier
of the static block and a layout update like this:
<move element="test-category-block" destination="content" after="-"/>
However the static block is not moving. Any idea why not?
magento2 layout category
magento2 layout category
asked May 10 at 16:44
quickshiftinquickshiftin
9831025
9831025
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I looked at the base catalog_category_view.xml
file in vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml
:
<referenceContainer name="columns.top">
<container name="category.view.container" htmlTag="div" htmlClass="category-view" after="-">
<block class="MagentoCatalogBlockCategoryView" name="category.image" template="Magento_Catalog::category/image.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.description" template="Magento_Catalog::category/description.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.cms" template="Magento_Catalog::category/cms.phtml"/>
</container>
</referenceContainer>
In accordance with that, changing the layout update from the identifier of the static block to category.cms
solved it.
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%2f274207%2fmove-static-block-on-category-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I looked at the base catalog_category_view.xml
file in vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml
:
<referenceContainer name="columns.top">
<container name="category.view.container" htmlTag="div" htmlClass="category-view" after="-">
<block class="MagentoCatalogBlockCategoryView" name="category.image" template="Magento_Catalog::category/image.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.description" template="Magento_Catalog::category/description.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.cms" template="Magento_Catalog::category/cms.phtml"/>
</container>
</referenceContainer>
In accordance with that, changing the layout update from the identifier of the static block to category.cms
solved it.
add a comment |
I looked at the base catalog_category_view.xml
file in vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml
:
<referenceContainer name="columns.top">
<container name="category.view.container" htmlTag="div" htmlClass="category-view" after="-">
<block class="MagentoCatalogBlockCategoryView" name="category.image" template="Magento_Catalog::category/image.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.description" template="Magento_Catalog::category/description.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.cms" template="Magento_Catalog::category/cms.phtml"/>
</container>
</referenceContainer>
In accordance with that, changing the layout update from the identifier of the static block to category.cms
solved it.
add a comment |
I looked at the base catalog_category_view.xml
file in vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml
:
<referenceContainer name="columns.top">
<container name="category.view.container" htmlTag="div" htmlClass="category-view" after="-">
<block class="MagentoCatalogBlockCategoryView" name="category.image" template="Magento_Catalog::category/image.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.description" template="Magento_Catalog::category/description.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.cms" template="Magento_Catalog::category/cms.phtml"/>
</container>
</referenceContainer>
In accordance with that, changing the layout update from the identifier of the static block to category.cms
solved it.
I looked at the base catalog_category_view.xml
file in vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml
:
<referenceContainer name="columns.top">
<container name="category.view.container" htmlTag="div" htmlClass="category-view" after="-">
<block class="MagentoCatalogBlockCategoryView" name="category.image" template="Magento_Catalog::category/image.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.description" template="Magento_Catalog::category/description.phtml"/>
<block class="MagentoCatalogBlockCategoryView" name="category.cms" template="Magento_Catalog::category/cms.phtml"/>
</container>
</referenceContainer>
In accordance with that, changing the layout update from the identifier of the static block to category.cms
solved it.
answered May 10 at 19:39
quickshiftinquickshiftin
9831025
9831025
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%2f274207%2fmove-static-block-on-category-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