Create less file for custom ThemeHow to utilise the existing LESS variables in my new less fileHow do you override LESS in a custom theme?Using LESS in existing ThemeExtend part .less fileBest way to locate LESS and CSS variables?How to correctly add my less file to Magento 2?Grunt - is it possible to watch custome module less files?Magento2 LESS extend/override custom themeInclude and compile custom.less file after removing the style-l and style-m cssMagento 2 Theme Development - grunt watch not detecting changes of custom LESS file

What did the 'turbo' button actually do?

Why unable to verify solution to first order PDE?

Can a tabaxi rogue with the Criminal background start with 8 skill proficiencies?

Why did Jon Snow do this immoral act if he is so honorable?

Who knighted this Game of Thrones character?

Why did other houses not demand this?

How to find a dynamically assigned aura:id?

Using too much dialogue?

Variable declaraton with extra in C

Co-author wants to put their current funding source in the acknowledgements section because they edited the paper

Are there any German nonsense poems (Jabberwocky)?

Why did it take so long for Germany to allow electric scooters / e-rollers on the roads?

Did this character show any indication of wanting to rule before S8E6?

Can a character with the War Caster feat call a bolt with Call Lightning instead of making an opportunity attack?

Why do Russians almost not use verbs of possession akin to "have"?

Why does Bran want to find Drogon?

Freedom of Speech and Assembly in China

How to politely tell someone they did not hit reply all in email?

Of strange atmospheres - the survivable but unbreathable

How would a developer who mostly fixed bugs for years at a company call out their contributions in their CV?

Are runways booked by airlines to land their planes?

Gravitational Force Between Numbers

What is the recommended procedure to land a taildragger in a crosswind?

Which European Languages are not Indo-European?



Create less file for custom Theme


How to utilise the existing LESS variables in my new less fileHow do you override LESS in a custom theme?Using LESS in existing ThemeExtend part .less fileBest way to locate LESS and CSS variables?How to correctly add my less file to Magento 2?Grunt - is it possible to watch custome module less files?Magento2 LESS extend/override custom themeInclude and compile custom.less file after removing the style-l and style-m cssMagento 2 Theme Development - grunt watch not detecting changes of custom LESS file






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








4















How to create new *.less file in Magento 2.3 project ?



Here is my existing Theme:



enter image description here



enter image description here



Here is my existing less file that DOES NOT work:



enter image description here



Nothing is work here:



enter image description here



enter image description here



My question is how to add custom less code/file to custom Theme?



any help would be extremely appreciated.










share|improve this question




























    4















    How to create new *.less file in Magento 2.3 project ?



    Here is my existing Theme:



    enter image description here



    enter image description here



    Here is my existing less file that DOES NOT work:



    enter image description here



    Nothing is work here:



    enter image description here



    enter image description here



    My question is how to add custom less code/file to custom Theme?



    any help would be extremely appreciated.










    share|improve this question
























      4












      4








      4








      How to create new *.less file in Magento 2.3 project ?



      Here is my existing Theme:



      enter image description here



      enter image description here



      Here is my existing less file that DOES NOT work:



      enter image description here



      Nothing is work here:



      enter image description here



      enter image description here



      My question is how to add custom less code/file to custom Theme?



      any help would be extremely appreciated.










      share|improve this question














      How to create new *.less file in Magento 2.3 project ?



      Here is my existing Theme:



      enter image description here



      enter image description here



      Here is my existing less file that DOES NOT work:



      enter image description here



      Nothing is work here:



      enter image description here



      enter image description here



      My question is how to add custom less code/file to custom Theme?



      any help would be extremely appreciated.







      theme css less grunt






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 10 at 4:35









      Yusuf IbrahimYusuf Ibrahim

      2709




      2709




















          2 Answers
          2






          active

          oldest

          votes


















          1














          You have created the less file properly,



          Run the Below command and check: (If grunt is installed properly, then your changes will reflect)



          grunt refresh 
          grunt less:YourThemeName





          share|improve this answer























          • arrgh you are right, voted yours as answer

            – Yusuf Ibrahim
            May 10 at 6:04











          • This Answer is not valid for our question, @YusufIbrahim why my answer is not acceptable for this question.

            – Abrar Pathan
            May 10 at 9:26












          • @Abrar Pathan, My answer is correct as per the default magento. Also your answer is right, but we used that less file on module basis.

            – Mohammad Faizan
            May 10 at 9:38











          • @AbrarPathan actually _extend.less works in both "Magento_Themewebcsssource" and "app/design/frontend/Senheng/default/web/css/source/", my mistake is I do not run "grunt refresh" before. but yes your anwer provide me more information for debugging

            – Yusuf Ibrahim
            May 10 at 9:39











          • @YusufIbrahim as per your question is not this issue is not Grunt related. Also, I can see your screenshot your grunt is working fine. In short, my answer is acceptble for this question. I think you are just asking the questions to make points on stack

            – Abrar Pathan
            May 10 at 9:47


















          1














          I have a review your question and I found that you have done the wrong step to override _extend.less file.



          The correct way to override _extend.less file:



          Go in your theme Magento_Themewebcsssource create _extend.less and put your changes in that.



          Thanks:)






          share|improve this answer























          • hi, thank mate, that's right.. you save my day :)

            – Yusuf Ibrahim
            May 10 at 5:46











          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%2f274085%2fcreate-less-file-for-custom-theme%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









          1














          You have created the less file properly,



          Run the Below command and check: (If grunt is installed properly, then your changes will reflect)



          grunt refresh 
          grunt less:YourThemeName





          share|improve this answer























          • arrgh you are right, voted yours as answer

            – Yusuf Ibrahim
            May 10 at 6:04











          • This Answer is not valid for our question, @YusufIbrahim why my answer is not acceptable for this question.

            – Abrar Pathan
            May 10 at 9:26












          • @Abrar Pathan, My answer is correct as per the default magento. Also your answer is right, but we used that less file on module basis.

            – Mohammad Faizan
            May 10 at 9:38











          • @AbrarPathan actually _extend.less works in both "Magento_Themewebcsssource" and "app/design/frontend/Senheng/default/web/css/source/", my mistake is I do not run "grunt refresh" before. but yes your anwer provide me more information for debugging

            – Yusuf Ibrahim
            May 10 at 9:39











          • @YusufIbrahim as per your question is not this issue is not Grunt related. Also, I can see your screenshot your grunt is working fine. In short, my answer is acceptble for this question. I think you are just asking the questions to make points on stack

            – Abrar Pathan
            May 10 at 9:47















          1














          You have created the less file properly,



          Run the Below command and check: (If grunt is installed properly, then your changes will reflect)



          grunt refresh 
          grunt less:YourThemeName





          share|improve this answer























          • arrgh you are right, voted yours as answer

            – Yusuf Ibrahim
            May 10 at 6:04











          • This Answer is not valid for our question, @YusufIbrahim why my answer is not acceptable for this question.

            – Abrar Pathan
            May 10 at 9:26












          • @Abrar Pathan, My answer is correct as per the default magento. Also your answer is right, but we used that less file on module basis.

            – Mohammad Faizan
            May 10 at 9:38











          • @AbrarPathan actually _extend.less works in both "Magento_Themewebcsssource" and "app/design/frontend/Senheng/default/web/css/source/", my mistake is I do not run "grunt refresh" before. but yes your anwer provide me more information for debugging

            – Yusuf Ibrahim
            May 10 at 9:39











          • @YusufIbrahim as per your question is not this issue is not Grunt related. Also, I can see your screenshot your grunt is working fine. In short, my answer is acceptble for this question. I think you are just asking the questions to make points on stack

            – Abrar Pathan
            May 10 at 9:47













          1












          1








          1







          You have created the less file properly,



          Run the Below command and check: (If grunt is installed properly, then your changes will reflect)



          grunt refresh 
          grunt less:YourThemeName





          share|improve this answer













          You have created the less file properly,



          Run the Below command and check: (If grunt is installed properly, then your changes will reflect)



          grunt refresh 
          grunt less:YourThemeName






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 10 at 4:52









          Mohammad FaizanMohammad Faizan

          1569




          1569












          • arrgh you are right, voted yours as answer

            – Yusuf Ibrahim
            May 10 at 6:04











          • This Answer is not valid for our question, @YusufIbrahim why my answer is not acceptable for this question.

            – Abrar Pathan
            May 10 at 9:26












          • @Abrar Pathan, My answer is correct as per the default magento. Also your answer is right, but we used that less file on module basis.

            – Mohammad Faizan
            May 10 at 9:38











          • @AbrarPathan actually _extend.less works in both "Magento_Themewebcsssource" and "app/design/frontend/Senheng/default/web/css/source/", my mistake is I do not run "grunt refresh" before. but yes your anwer provide me more information for debugging

            – Yusuf Ibrahim
            May 10 at 9:39











          • @YusufIbrahim as per your question is not this issue is not Grunt related. Also, I can see your screenshot your grunt is working fine. In short, my answer is acceptble for this question. I think you are just asking the questions to make points on stack

            – Abrar Pathan
            May 10 at 9:47

















          • arrgh you are right, voted yours as answer

            – Yusuf Ibrahim
            May 10 at 6:04











          • This Answer is not valid for our question, @YusufIbrahim why my answer is not acceptable for this question.

            – Abrar Pathan
            May 10 at 9:26












          • @Abrar Pathan, My answer is correct as per the default magento. Also your answer is right, but we used that less file on module basis.

            – Mohammad Faizan
            May 10 at 9:38











          • @AbrarPathan actually _extend.less works in both "Magento_Themewebcsssource" and "app/design/frontend/Senheng/default/web/css/source/", my mistake is I do not run "grunt refresh" before. but yes your anwer provide me more information for debugging

            – Yusuf Ibrahim
            May 10 at 9:39











          • @YusufIbrahim as per your question is not this issue is not Grunt related. Also, I can see your screenshot your grunt is working fine. In short, my answer is acceptble for this question. I think you are just asking the questions to make points on stack

            – Abrar Pathan
            May 10 at 9:47
















          arrgh you are right, voted yours as answer

          – Yusuf Ibrahim
          May 10 at 6:04





          arrgh you are right, voted yours as answer

          – Yusuf Ibrahim
          May 10 at 6:04













          This Answer is not valid for our question, @YusufIbrahim why my answer is not acceptable for this question.

          – Abrar Pathan
          May 10 at 9:26






          This Answer is not valid for our question, @YusufIbrahim why my answer is not acceptable for this question.

          – Abrar Pathan
          May 10 at 9:26














          @Abrar Pathan, My answer is correct as per the default magento. Also your answer is right, but we used that less file on module basis.

          – Mohammad Faizan
          May 10 at 9:38





          @Abrar Pathan, My answer is correct as per the default magento. Also your answer is right, but we used that less file on module basis.

          – Mohammad Faizan
          May 10 at 9:38













          @AbrarPathan actually _extend.less works in both "Magento_Themewebcsssource" and "app/design/frontend/Senheng/default/web/css/source/", my mistake is I do not run "grunt refresh" before. but yes your anwer provide me more information for debugging

          – Yusuf Ibrahim
          May 10 at 9:39





          @AbrarPathan actually _extend.less works in both "Magento_Themewebcsssource" and "app/design/frontend/Senheng/default/web/css/source/", my mistake is I do not run "grunt refresh" before. but yes your anwer provide me more information for debugging

          – Yusuf Ibrahim
          May 10 at 9:39













          @YusufIbrahim as per your question is not this issue is not Grunt related. Also, I can see your screenshot your grunt is working fine. In short, my answer is acceptble for this question. I think you are just asking the questions to make points on stack

          – Abrar Pathan
          May 10 at 9:47





          @YusufIbrahim as per your question is not this issue is not Grunt related. Also, I can see your screenshot your grunt is working fine. In short, my answer is acceptble for this question. I think you are just asking the questions to make points on stack

          – Abrar Pathan
          May 10 at 9:47













          1














          I have a review your question and I found that you have done the wrong step to override _extend.less file.



          The correct way to override _extend.less file:



          Go in your theme Magento_Themewebcsssource create _extend.less and put your changes in that.



          Thanks:)






          share|improve this answer























          • hi, thank mate, that's right.. you save my day :)

            – Yusuf Ibrahim
            May 10 at 5:46















          1














          I have a review your question and I found that you have done the wrong step to override _extend.less file.



          The correct way to override _extend.less file:



          Go in your theme Magento_Themewebcsssource create _extend.less and put your changes in that.



          Thanks:)






          share|improve this answer























          • hi, thank mate, that's right.. you save my day :)

            – Yusuf Ibrahim
            May 10 at 5:46













          1












          1








          1







          I have a review your question and I found that you have done the wrong step to override _extend.less file.



          The correct way to override _extend.less file:



          Go in your theme Magento_Themewebcsssource create _extend.less and put your changes in that.



          Thanks:)






          share|improve this answer













          I have a review your question and I found that you have done the wrong step to override _extend.less file.



          The correct way to override _extend.less file:



          Go in your theme Magento_Themewebcsssource create _extend.less and put your changes in that.



          Thanks:)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 10 at 5:17









          Abrar PathanAbrar Pathan

          543




          543












          • hi, thank mate, that's right.. you save my day :)

            – Yusuf Ibrahim
            May 10 at 5:46

















          • hi, thank mate, that's right.. you save my day :)

            – Yusuf Ibrahim
            May 10 at 5:46
















          hi, thank mate, that's right.. you save my day :)

          – Yusuf Ibrahim
          May 10 at 5:46





          hi, thank mate, that's right.. you save my day :)

          – Yusuf Ibrahim
          May 10 at 5:46

















          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%2f274085%2fcreate-less-file-for-custom-theme%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

          Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

          Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

          What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company