Move logo to center of pageMove element XML not working (Magento 2)Override header Content and adding blockLuma sub theme - can't change logo sizeMove block in catalog_product_view layoutMagento 2: move the top links in the same container as the logoMagento2 Layout move element only for desktop view?Move product info in details tabHome Page getting error when try add product in cart Magento 2Solved: Magento 2 move productpage title around div

Is the decompression of compressed and encrypted data without decryption also theoretically impossible?

Why were the Night's Watch required to be celibate?

Rotated Position of Integers

How to split a string in two substrings of same length using bash?

Can I ask a publisher for a paper that I need for reviewing

What is the Process for Re-certifying Flight Hardware?

Is having a hidden directory under /etc safe?

Hygienic footwear for prehensile feet?

What if you don't bring your credit card or debit for incidentals?

Metal bar on DMM PCB

Comma Code - Ch. 4 Automate the Boring Stuff

Concise way to draw this pyramid

Restoring order in a deck of playing cards (II)

If a problem only occurs randomly once in every N times on average, how many tests do I have to perform to be certain that it's now fixed?

When leasing/renting out an owned property, is there a standard ratio between monthly rent and the mortgage?

Does any lore text explain why the planes of Acheron, Gehenna, and Carceri are the alignment they are?

Can an old DSLR be upgraded to match modern smartphone image quality

Can a magnetic field of a large body be stronger than its gravity?

Initialize an array of doubles at compile time

Setting extra bits in a bool makes it true and false at the same time

Do adult Russians normally hand-write Cyrillic as cursive or as block letters?

Why does a helium balloon rise?

Opposite of "Squeaky wheel gets the grease"

Working in the USA for living expenses only; allowed on VWP?



Move logo to center of page


Move element XML not working (Magento 2)Override header Content and adding blockLuma sub theme - can't change logo sizeMove block in catalog_product_view layoutMagento 2: move the top links in the same container as the logoMagento2 Layout move element only for desktop view?Move product info in details tabHome Page getting error when try add product in cart Magento 2Solved: Magento 2 move productpage title around div






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I want to move LOGO of site to center and want to add some text on the place of logo. I am able to add text from file but logo is not moving to center of container.



  • I have extended LUMA theme.

  • Screen Shot is attached as what i want achieve

enter image description here










share|improve this question






























    0















    I want to move LOGO of site to center and want to add some text on the place of logo. I am able to add text from file but logo is not moving to center of container.



    • I have extended LUMA theme.

    • Screen Shot is attached as what i want achieve

    enter image description here










    share|improve this question


























      0












      0








      0


      1






      I want to move LOGO of site to center and want to add some text on the place of logo. I am able to add text from file but logo is not moving to center of container.



      • I have extended LUMA theme.

      • Screen Shot is attached as what i want achieve

      enter image description here










      share|improve this question
















      I want to move LOGO of site to center and want to add some text on the place of logo. I am able to add text from file but logo is not moving to center of container.



      • I have extended LUMA theme.

      • Screen Shot is attached as what i want achieve

      enter image description here







      layout magento-2.1






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 16 '16 at 8:12







      Jai

















      asked Dec 12 '16 at 7:21









      JaiJai

      3,63183163




      3,63183163




















          2 Answers
          2






          active

          oldest

          votes


















          0














          You could do it modifying element style; try to change .logo style (margin: -8px auto 25px 30%; instead of margin: -8px auto 25px 0;), for example.



          In this case, you have to hook your text block in another block, different from logo.






          share|improve this answer























          • it would not work.

            – Jai
            Dec 16 '16 at 10:32











          • I tried it and it works fine.

            – WaPoNe
            Dec 16 '16 at 10:34











          • This is not a proper way to movo logo to center and Add static block in left side. I am looking to use of standard magento way

            – Jai
            Dec 16 '16 at 10:39






          • 1





            Logo element is in header.container block, correctly. In there, you have two inline elements (nav-toggle and logo) and two block elements (minicart-wrapper and block-seearch); thier positions are decided by style only. My advice is Magento complient.

            – WaPoNe
            Dec 16 '16 at 10:52











          • If i do this, then I can display text on left side of logo? 1st: "Some Text", 2nd: Logo, 3rd: Search-box.

            – Jai
            Dec 16 '16 at 11:40


















          0














          You can try achieve this by following code.




          app/design/frontend/Vendor/theme/Magento_Theme/layout/default.xml




          <container name="header.main" htmlTag="header" htmlClass="header-main">
          <container name="header.main.container" htmlTag="div" htmlClass="container">
          <container name="header.main.row" htmlTag="div" htmlClass="row vcenter">
          <container name="header.main.social" htmlTag="div" htmlClass="col-md-3 col-sm-3 hidden-xs header-social" before="-">
          <block name="header.social" class="MagentoFrameworkViewElementTemplate" template="Magento_Theme::html/header/social.phtml"/>
          </container>
          <container name="header.main.logo" htmlTag="div" htmlClass="col-md-6 col-sm-6 col-xs-10 header-logo">
          <block class="MagentoThemeBlockHtmlHeaderLogo" name="logo">
          <arguments>
          <argument name="logo_img_width" xsi:type="number">499</argument>
          <argument name="logo_img_height" xsi:type="number">57</argument>
          </arguments>
          </block>
          </container>
          <container name="header.main.search" htmlTag="div" htmlClass="col-md-3 col-sm-3 header-search hidden-xs" after="-">
          <block class="MagentoFrameworkViewElementTemplate" template="Magento_Search::form.mini.phtml" />
          </container>
          </container>
          </container>
          </container>





          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%2f149855%2fmove-logo-to-center-of-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









            0














            You could do it modifying element style; try to change .logo style (margin: -8px auto 25px 30%; instead of margin: -8px auto 25px 0;), for example.



            In this case, you have to hook your text block in another block, different from logo.






            share|improve this answer























            • it would not work.

              – Jai
              Dec 16 '16 at 10:32











            • I tried it and it works fine.

              – WaPoNe
              Dec 16 '16 at 10:34











            • This is not a proper way to movo logo to center and Add static block in left side. I am looking to use of standard magento way

              – Jai
              Dec 16 '16 at 10:39






            • 1





              Logo element is in header.container block, correctly. In there, you have two inline elements (nav-toggle and logo) and two block elements (minicart-wrapper and block-seearch); thier positions are decided by style only. My advice is Magento complient.

              – WaPoNe
              Dec 16 '16 at 10:52











            • If i do this, then I can display text on left side of logo? 1st: "Some Text", 2nd: Logo, 3rd: Search-box.

              – Jai
              Dec 16 '16 at 11:40















            0














            You could do it modifying element style; try to change .logo style (margin: -8px auto 25px 30%; instead of margin: -8px auto 25px 0;), for example.



            In this case, you have to hook your text block in another block, different from logo.






            share|improve this answer























            • it would not work.

              – Jai
              Dec 16 '16 at 10:32











            • I tried it and it works fine.

              – WaPoNe
              Dec 16 '16 at 10:34











            • This is not a proper way to movo logo to center and Add static block in left side. I am looking to use of standard magento way

              – Jai
              Dec 16 '16 at 10:39






            • 1





              Logo element is in header.container block, correctly. In there, you have two inline elements (nav-toggle and logo) and two block elements (minicart-wrapper and block-seearch); thier positions are decided by style only. My advice is Magento complient.

              – WaPoNe
              Dec 16 '16 at 10:52











            • If i do this, then I can display text on left side of logo? 1st: "Some Text", 2nd: Logo, 3rd: Search-box.

              – Jai
              Dec 16 '16 at 11:40













            0












            0








            0







            You could do it modifying element style; try to change .logo style (margin: -8px auto 25px 30%; instead of margin: -8px auto 25px 0;), for example.



            In this case, you have to hook your text block in another block, different from logo.






            share|improve this answer













            You could do it modifying element style; try to change .logo style (margin: -8px auto 25px 30%; instead of margin: -8px auto 25px 0;), for example.



            In this case, you have to hook your text block in another block, different from logo.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 16 '16 at 9:50









            WaPoNeWaPoNe

            89511125




            89511125












            • it would not work.

              – Jai
              Dec 16 '16 at 10:32











            • I tried it and it works fine.

              – WaPoNe
              Dec 16 '16 at 10:34











            • This is not a proper way to movo logo to center and Add static block in left side. I am looking to use of standard magento way

              – Jai
              Dec 16 '16 at 10:39






            • 1





              Logo element is in header.container block, correctly. In there, you have two inline elements (nav-toggle and logo) and two block elements (minicart-wrapper and block-seearch); thier positions are decided by style only. My advice is Magento complient.

              – WaPoNe
              Dec 16 '16 at 10:52











            • If i do this, then I can display text on left side of logo? 1st: "Some Text", 2nd: Logo, 3rd: Search-box.

              – Jai
              Dec 16 '16 at 11:40

















            • it would not work.

              – Jai
              Dec 16 '16 at 10:32











            • I tried it and it works fine.

              – WaPoNe
              Dec 16 '16 at 10:34











            • This is not a proper way to movo logo to center and Add static block in left side. I am looking to use of standard magento way

              – Jai
              Dec 16 '16 at 10:39






            • 1





              Logo element is in header.container block, correctly. In there, you have two inline elements (nav-toggle and logo) and two block elements (minicart-wrapper and block-seearch); thier positions are decided by style only. My advice is Magento complient.

              – WaPoNe
              Dec 16 '16 at 10:52











            • If i do this, then I can display text on left side of logo? 1st: "Some Text", 2nd: Logo, 3rd: Search-box.

              – Jai
              Dec 16 '16 at 11:40
















            it would not work.

            – Jai
            Dec 16 '16 at 10:32





            it would not work.

            – Jai
            Dec 16 '16 at 10:32













            I tried it and it works fine.

            – WaPoNe
            Dec 16 '16 at 10:34





            I tried it and it works fine.

            – WaPoNe
            Dec 16 '16 at 10:34













            This is not a proper way to movo logo to center and Add static block in left side. I am looking to use of standard magento way

            – Jai
            Dec 16 '16 at 10:39





            This is not a proper way to movo logo to center and Add static block in left side. I am looking to use of standard magento way

            – Jai
            Dec 16 '16 at 10:39




            1




            1





            Logo element is in header.container block, correctly. In there, you have two inline elements (nav-toggle and logo) and two block elements (minicart-wrapper and block-seearch); thier positions are decided by style only. My advice is Magento complient.

            – WaPoNe
            Dec 16 '16 at 10:52





            Logo element is in header.container block, correctly. In there, you have two inline elements (nav-toggle and logo) and two block elements (minicart-wrapper and block-seearch); thier positions are decided by style only. My advice is Magento complient.

            – WaPoNe
            Dec 16 '16 at 10:52













            If i do this, then I can display text on left side of logo? 1st: "Some Text", 2nd: Logo, 3rd: Search-box.

            – Jai
            Dec 16 '16 at 11:40





            If i do this, then I can display text on left side of logo? 1st: "Some Text", 2nd: Logo, 3rd: Search-box.

            – Jai
            Dec 16 '16 at 11:40













            0














            You can try achieve this by following code.




            app/design/frontend/Vendor/theme/Magento_Theme/layout/default.xml




            <container name="header.main" htmlTag="header" htmlClass="header-main">
            <container name="header.main.container" htmlTag="div" htmlClass="container">
            <container name="header.main.row" htmlTag="div" htmlClass="row vcenter">
            <container name="header.main.social" htmlTag="div" htmlClass="col-md-3 col-sm-3 hidden-xs header-social" before="-">
            <block name="header.social" class="MagentoFrameworkViewElementTemplate" template="Magento_Theme::html/header/social.phtml"/>
            </container>
            <container name="header.main.logo" htmlTag="div" htmlClass="col-md-6 col-sm-6 col-xs-10 header-logo">
            <block class="MagentoThemeBlockHtmlHeaderLogo" name="logo">
            <arguments>
            <argument name="logo_img_width" xsi:type="number">499</argument>
            <argument name="logo_img_height" xsi:type="number">57</argument>
            </arguments>
            </block>
            </container>
            <container name="header.main.search" htmlTag="div" htmlClass="col-md-3 col-sm-3 header-search hidden-xs" after="-">
            <block class="MagentoFrameworkViewElementTemplate" template="Magento_Search::form.mini.phtml" />
            </container>
            </container>
            </container>
            </container>





            share|improve this answer



























              0














              You can try achieve this by following code.




              app/design/frontend/Vendor/theme/Magento_Theme/layout/default.xml




              <container name="header.main" htmlTag="header" htmlClass="header-main">
              <container name="header.main.container" htmlTag="div" htmlClass="container">
              <container name="header.main.row" htmlTag="div" htmlClass="row vcenter">
              <container name="header.main.social" htmlTag="div" htmlClass="col-md-3 col-sm-3 hidden-xs header-social" before="-">
              <block name="header.social" class="MagentoFrameworkViewElementTemplate" template="Magento_Theme::html/header/social.phtml"/>
              </container>
              <container name="header.main.logo" htmlTag="div" htmlClass="col-md-6 col-sm-6 col-xs-10 header-logo">
              <block class="MagentoThemeBlockHtmlHeaderLogo" name="logo">
              <arguments>
              <argument name="logo_img_width" xsi:type="number">499</argument>
              <argument name="logo_img_height" xsi:type="number">57</argument>
              </arguments>
              </block>
              </container>
              <container name="header.main.search" htmlTag="div" htmlClass="col-md-3 col-sm-3 header-search hidden-xs" after="-">
              <block class="MagentoFrameworkViewElementTemplate" template="Magento_Search::form.mini.phtml" />
              </container>
              </container>
              </container>
              </container>





              share|improve this answer

























                0












                0








                0







                You can try achieve this by following code.




                app/design/frontend/Vendor/theme/Magento_Theme/layout/default.xml




                <container name="header.main" htmlTag="header" htmlClass="header-main">
                <container name="header.main.container" htmlTag="div" htmlClass="container">
                <container name="header.main.row" htmlTag="div" htmlClass="row vcenter">
                <container name="header.main.social" htmlTag="div" htmlClass="col-md-3 col-sm-3 hidden-xs header-social" before="-">
                <block name="header.social" class="MagentoFrameworkViewElementTemplate" template="Magento_Theme::html/header/social.phtml"/>
                </container>
                <container name="header.main.logo" htmlTag="div" htmlClass="col-md-6 col-sm-6 col-xs-10 header-logo">
                <block class="MagentoThemeBlockHtmlHeaderLogo" name="logo">
                <arguments>
                <argument name="logo_img_width" xsi:type="number">499</argument>
                <argument name="logo_img_height" xsi:type="number">57</argument>
                </arguments>
                </block>
                </container>
                <container name="header.main.search" htmlTag="div" htmlClass="col-md-3 col-sm-3 header-search hidden-xs" after="-">
                <block class="MagentoFrameworkViewElementTemplate" template="Magento_Search::form.mini.phtml" />
                </container>
                </container>
                </container>
                </container>





                share|improve this answer













                You can try achieve this by following code.




                app/design/frontend/Vendor/theme/Magento_Theme/layout/default.xml




                <container name="header.main" htmlTag="header" htmlClass="header-main">
                <container name="header.main.container" htmlTag="div" htmlClass="container">
                <container name="header.main.row" htmlTag="div" htmlClass="row vcenter">
                <container name="header.main.social" htmlTag="div" htmlClass="col-md-3 col-sm-3 hidden-xs header-social" before="-">
                <block name="header.social" class="MagentoFrameworkViewElementTemplate" template="Magento_Theme::html/header/social.phtml"/>
                </container>
                <container name="header.main.logo" htmlTag="div" htmlClass="col-md-6 col-sm-6 col-xs-10 header-logo">
                <block class="MagentoThemeBlockHtmlHeaderLogo" name="logo">
                <arguments>
                <argument name="logo_img_width" xsi:type="number">499</argument>
                <argument name="logo_img_height" xsi:type="number">57</argument>
                </arguments>
                </block>
                </container>
                <container name="header.main.search" htmlTag="div" htmlClass="col-md-3 col-sm-3 header-search hidden-xs" after="-">
                <block class="MagentoFrameworkViewElementTemplate" template="Magento_Search::form.mini.phtml" />
                </container>
                </container>
                </container>
                </container>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 18 '18 at 17:18









                Abhishek PanchalAbhishek Panchal

                3,6903929




                3,6903929



























                    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%2f149855%2fmove-logo-to-center-of-page%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