Magento 2: How to add a div in below navigation?Add block to each product in category viewThe proper way to move the sections/navigation block inside Magento 2 header blockMoving layered navigation below product toolbar in layout.xmlMagento 2 Luma theme menu/navigationHow to render loaded attributes from Catalog/Layer_View blockMagento 2 Luma theme menu navigation not showingAdd additional class to breadcrumbs <div> on every pageAdd a static block right under the main navigation, not wrapped in a widget, full widthTheme, BT4 and jQuery in magento 2Cannot see products on homepage
CSV how to trim values to 2 places in multiple columns using UNIX
How come the nude protesters were not arrested?
Active low-pass filters --- good to what frequencies?
Someone whose aspirations exceed abilities or means
Is it expected that a reader will skip parts of what you write?
Teaching a class likely meant to inflate the GPA of student athletes
Cascading Switches. Will it affect performance?
Extreme flexible working hours: how to get to know people and activities?
A word that means "blending into a community too much"
How can I get an unreasonable manager to approve time off?
Who won a Game of Bar Dice?
What ways have you found to get edits from non-LaTeX users?
How do free-speech protections in the United States apply in public to corporate misrepresentations?
Wooden cooking layout
sed + add word before string only if not exists
A map of non-pathological topology?
Why does logistic function use e rather than 2?
Why can I traceroute to this IP address, but not ping?
Why not invest in precious metals?
What to do when surprise and a high initiative roll conflict with the narrative?
US doctor working in Tripoli wants me to open online account
Electricity free spaceship
Can I utilise a baking stone to make crepes?
How to safely destroy (a large quantity of) valid checks?
Magento 2: How to add a div in below navigation?
Add block to each product in category viewThe proper way to move the sections/navigation block inside Magento 2 header blockMoving layered navigation below product toolbar in layout.xmlMagento 2 Luma theme menu/navigationHow to render loaded attributes from Catalog/Layer_View blockMagento 2 Luma theme menu navigation not showingAdd additional class to breadcrumbs <div> on every pageAdd a static block right under the main navigation, not wrapped in a widget, full widthTheme, BT4 and jQuery in magento 2Cannot see products on homepage
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to get a div displayed directly below the navigation on a theme which extends Luma
I have added the following into my Magento_Theme/layout/default.xml but cannot see any results. The block as been created via admin UI.
<referenceContainer name="below.nav">
<container name="after_main" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="columns.top">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
magento2 layout blocks static-block
add a comment |
I am trying to get a div displayed directly below the navigation on a theme which extends Luma
I have added the following into my Magento_Theme/layout/default.xml but cannot see any results. The block as been created via admin UI.
<referenceContainer name="below.nav">
<container name="after_main" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="columns.top">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
magento2 layout blocks static-block
add a comment |
I am trying to get a div displayed directly below the navigation on a theme which extends Luma
I have added the following into my Magento_Theme/layout/default.xml but cannot see any results. The block as been created via admin UI.
<referenceContainer name="below.nav">
<container name="after_main" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="columns.top">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
magento2 layout blocks static-block
I am trying to get a div displayed directly below the navigation on a theme which extends Luma
I have added the following into my Magento_Theme/layout/default.xml but cannot see any results. The block as been created via admin UI.
<referenceContainer name="below.nav">
<container name="after_main" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="columns.top">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
magento2 layout blocks static-block
magento2 layout blocks static-block
edited Jun 1 at 11:27
Paul 'Whippet' McGuane
asked Jun 1 at 7:05
Paul 'Whippet' McGuanePaul 'Whippet' McGuane
17411
17411
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Try to use container with name: top.container
to reference.
So, change your code to the next value:
<referenceContainer name="top.container">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</referenceContainer>
And content from your CMS block with topbar ID should be displayed after the nav with class navigation
add a comment |
I was finally able to get this to work after changing the container similar to what was mentioned here
<referenceContainer name="page.top">
<container name="below.nav.topbar" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="breadcrumbs">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
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%2f276942%2fmagento-2-how-to-add-a-div-in-below-navigation%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
Try to use container with name: top.container
to reference.
So, change your code to the next value:
<referenceContainer name="top.container">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</referenceContainer>
And content from your CMS block with topbar ID should be displayed after the nav with class navigation
add a comment |
Try to use container with name: top.container
to reference.
So, change your code to the next value:
<referenceContainer name="top.container">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</referenceContainer>
And content from your CMS block with topbar ID should be displayed after the nav with class navigation
add a comment |
Try to use container with name: top.container
to reference.
So, change your code to the next value:
<referenceContainer name="top.container">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</referenceContainer>
And content from your CMS block with topbar ID should be displayed after the nav with class navigation
Try to use container with name: top.container
to reference.
So, change your code to the next value:
<referenceContainer name="top.container">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</referenceContainer>
And content from your CMS block with topbar ID should be displayed after the nav with class navigation
answered Jun 1 at 20:33
JohnnySkJohnnySk
1186
1186
add a comment |
add a comment |
I was finally able to get this to work after changing the container similar to what was mentioned here
<referenceContainer name="page.top">
<container name="below.nav.topbar" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="breadcrumbs">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
add a comment |
I was finally able to get this to work after changing the container similar to what was mentioned here
<referenceContainer name="page.top">
<container name="below.nav.topbar" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="breadcrumbs">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
add a comment |
I was finally able to get this to work after changing the container similar to what was mentioned here
<referenceContainer name="page.top">
<container name="below.nav.topbar" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="breadcrumbs">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
I was finally able to get this to work after changing the container similar to what was mentioned here
<referenceContainer name="page.top">
<container name="below.nav.topbar" label="Before Main Columns" htmlTag="div" htmlClass="topbar" before="breadcrumbs">
<block class="MagentoCmsBlockBlock" name="topbar">
<arguments>
<argument name="block_id" xsi:type="string">topbar</argument>
</arguments>
</block>
</container>
</referenceContainer>
answered Jun 2 at 2:52
Paul 'Whippet' McGuanePaul 'Whippet' McGuane
17411
17411
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%2f276942%2fmagento-2-how-to-add-a-div-in-below-navigation%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