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

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

                              Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                              Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?