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;








2















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>









share|improve this question






























    2















    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>









    share|improve this question


























      2












      2








      2








      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>









      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 1 at 11:27







      Paul 'Whippet' McGuane

















      asked Jun 1 at 7:05









      Paul 'Whippet' McGuanePaul 'Whippet' McGuane

      17411




      17411




















          2 Answers
          2






          active

          oldest

          votes


















          0














          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






          share|improve this answer






























            0














            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>





            share|improve this answer























              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
              );



              );













              draft saved

              draft discarded


















              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









              0














              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






              share|improve this answer



























                0














                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






                share|improve this answer

























                  0












                  0








                  0







                  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






                  share|improve this answer













                  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







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 1 at 20:33









                  JohnnySkJohnnySk

                  1186




                  1186























                      0














                      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>





                      share|improve this answer



























                        0














                        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>





                        share|improve this answer

























                          0












                          0








                          0







                          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>





                          share|improve this answer













                          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>






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jun 2 at 2:52









                          Paul 'Whippet' McGuanePaul 'Whippet' McGuane

                          17411




                          17411



























                              draft saved

                              draft discarded
















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form