How can magento2 support .less or css for multi language locale?Magento 2: Different static-content Files Per Locale?How to add custom css file specific to language or store in magento2How I can include bower for my theme?Override Magento 2 JS file via requirejs-config.js not workingMagento 2 why CSS was blocked due to MIME type mismatchMagento, problem with adding a custom css fileError: Exception #0 (InvalidArgumentException): Unable to serialize value - Produced by custom ThemeMagento 2 - Custom style _listings.less not workingOwl carousel is not working in magento 2Magento2 : How to add something in my css / less file?How to edit .less or css files

Should I include salary information on my CV?

Why does Darth Sidious need bodyguards?

Ending: accusative or not?

Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?

Symbolic equivalent of chmod 400

Does the posterior necessarily follow the same conditional dependence structure as the prior?

A player is constantly pestering me about rules, what do I do as a DM?

How well known and how commonly used was Huffman coding in 1979?

Do sudoku answers always have a single minimal clue set?

What is this particular type of chord progression, common in classical music, called?

Why is C++ initial allocation so much larger than C's?

How to append a matrix element by element?

Fitting a mixture of two normal distributions for a data set?

Is this one of the engines from the 9/11 aircraft?

Could Sauron have read Tom Bombadil's mind if Tom had held the Palantir?

What happens when your group is victim of a surprise attack but you can't be surprised?

What are the penalties for overstaying in USA?

Is it possible to buy a train ticket CDG airport to Paris truly online?

Intuitively, why does putting capacitors in series decrease the equivalent capacitance?

How could mana leakage be dangerous to a elf?

Bash echo $-1 prints hb1. Why?

How to positively portray high and mighty characters?

What is the line crossing the Pacific Ocean that is shown on maps?

The use of "I" and "we" used in the same sentence and other questions



How can magento2 support .less or css for multi language locale?


Magento 2: Different static-content Files Per Locale?How to add custom css file specific to language or store in magento2How I can include bower for my theme?Override Magento 2 JS file via requirejs-config.js not workingMagento 2 why CSS was blocked due to MIME type mismatchMagento, problem with adding a custom css fileError: Exception #0 (InvalidArgumentException): Unable to serialize value - Produced by custom ThemeMagento 2 - Custom style _listings.less not workingOwl carousel is not working in magento 2Magento2 : How to add something in my css / less file?How to edit .less or css files






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








4















For CSS, I found that we can add web/i18n/en_US/mymodule.css for module



If I want to add some locale specific CSS for the core module, where should I put them in? e.g. app/design/frontend/mypackage/mytheme/Magento_Catalog/web/i18n/en_US/catalog.css ?



But if I want to add locale specific .less file, how can I do this?










share|improve this question
























  • Please check this answer https://magento.stackexchange.com/a/96080/60973

    – situee
    Nov 29 '17 at 8:09











  • You must override a the less file you can’t with css

    – Mohamed El Mrabet
    Nov 29 '17 at 8:48

















4















For CSS, I found that we can add web/i18n/en_US/mymodule.css for module



If I want to add some locale specific CSS for the core module, where should I put them in? e.g. app/design/frontend/mypackage/mytheme/Magento_Catalog/web/i18n/en_US/catalog.css ?



But if I want to add locale specific .less file, how can I do this?










share|improve this question
























  • Please check this answer https://magento.stackexchange.com/a/96080/60973

    – situee
    Nov 29 '17 at 8:09











  • You must override a the less file you can’t with css

    – Mohamed El Mrabet
    Nov 29 '17 at 8:48













4












4








4


1






For CSS, I found that we can add web/i18n/en_US/mymodule.css for module



If I want to add some locale specific CSS for the core module, where should I put them in? e.g. app/design/frontend/mypackage/mytheme/Magento_Catalog/web/i18n/en_US/catalog.css ?



But if I want to add locale specific .less file, how can I do this?










share|improve this question
















For CSS, I found that we can add web/i18n/en_US/mymodule.css for module



If I want to add some locale specific CSS for the core module, where should I put them in? e.g. app/design/frontend/mypackage/mytheme/Magento_Catalog/web/i18n/en_US/catalog.css ?



But if I want to add locale specific .less file, how can I do this?







magento2 css language less locale






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 17 at 4:26









poojan sharma

6751 silver badge10 bronze badges




6751 silver badge10 bronze badges










asked Nov 10 '16 at 4:45









leoleo

6286 silver badges22 bronze badges




6286 silver badges22 bronze badges












  • Please check this answer https://magento.stackexchange.com/a/96080/60973

    – situee
    Nov 29 '17 at 8:09











  • You must override a the less file you can’t with css

    – Mohamed El Mrabet
    Nov 29 '17 at 8:48

















  • Please check this answer https://magento.stackexchange.com/a/96080/60973

    – situee
    Nov 29 '17 at 8:09











  • You must override a the less file you can’t with css

    – Mohamed El Mrabet
    Nov 29 '17 at 8:48
















Please check this answer https://magento.stackexchange.com/a/96080/60973

– situee
Nov 29 '17 at 8:09





Please check this answer https://magento.stackexchange.com/a/96080/60973

– situee
Nov 29 '17 at 8:09













You must override a the less file you can’t with css

– Mohamed El Mrabet
Nov 29 '17 at 8:48





You must override a the less file you can’t with css

– Mohamed El Mrabet
Nov 29 '17 at 8:48










3 Answers
3






active

oldest

votes


















1














You can add new CSS to the head of all your template pages.



Create /Magento_Theme/layout/default_head_blocks.xml:



<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/custom.less" />
</head>
</page>





share|improve this answer























  • how about for locale(multi-language) specific css?

    – leo
    Dec 13 '16 at 6:18











  • If its same theme then you can use same XML if its different the add there too in XML

    – karthick
    Dec 13 '16 at 7:17


















0














Simple ways to customize a theme's styles for magento2




Simplest way to extend parent styles



To extend the parent theme’s styles in your theme:



In your theme directory, create a web/css/source sub-directory.
Create a _extend.less file there. The path to it looks like following:

<theme_dir>/
│ ├── web/
│ │ ├── css/
│ │ │ ├── source/
│ │ │ ├──_extend.less



for locale specific less, use this path



<theme_dir>/web/i18n/locale/css/source/_extend.less






share|improve this answer






























    0














    locale-specific not possible.



    for locale assign you must need to assign store view.



    For each store wise you can create new theme and assig it.



    Hope it will clear your idea.






    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%2f145026%2fhow-can-magento2-support-less-or-css-for-multi-language-locale%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      You can add new CSS to the head of all your template pages.



      Create /Magento_Theme/layout/default_head_blocks.xml:



      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <head>
      <css src="css/custom.less" />
      </head>
      </page>





      share|improve this answer























      • how about for locale(multi-language) specific css?

        – leo
        Dec 13 '16 at 6:18











      • If its same theme then you can use same XML if its different the add there too in XML

        – karthick
        Dec 13 '16 at 7:17















      1














      You can add new CSS to the head of all your template pages.



      Create /Magento_Theme/layout/default_head_blocks.xml:



      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <head>
      <css src="css/custom.less" />
      </head>
      </page>





      share|improve this answer























      • how about for locale(multi-language) specific css?

        – leo
        Dec 13 '16 at 6:18











      • If its same theme then you can use same XML if its different the add there too in XML

        – karthick
        Dec 13 '16 at 7:17













      1












      1








      1







      You can add new CSS to the head of all your template pages.



      Create /Magento_Theme/layout/default_head_blocks.xml:



      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <head>
      <css src="css/custom.less" />
      </head>
      </page>





      share|improve this answer













      You can add new CSS to the head of all your template pages.



      Create /Magento_Theme/layout/default_head_blocks.xml:



      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <head>
      <css src="css/custom.less" />
      </head>
      </page>






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Dec 4 '16 at 7:38









      karthickkarthick

      4101 gold badge5 silver badges15 bronze badges




      4101 gold badge5 silver badges15 bronze badges












      • how about for locale(multi-language) specific css?

        – leo
        Dec 13 '16 at 6:18











      • If its same theme then you can use same XML if its different the add there too in XML

        – karthick
        Dec 13 '16 at 7:17

















      • how about for locale(multi-language) specific css?

        – leo
        Dec 13 '16 at 6:18











      • If its same theme then you can use same XML if its different the add there too in XML

        – karthick
        Dec 13 '16 at 7:17
















      how about for locale(multi-language) specific css?

      – leo
      Dec 13 '16 at 6:18





      how about for locale(multi-language) specific css?

      – leo
      Dec 13 '16 at 6:18













      If its same theme then you can use same XML if its different the add there too in XML

      – karthick
      Dec 13 '16 at 7:17





      If its same theme then you can use same XML if its different the add there too in XML

      – karthick
      Dec 13 '16 at 7:17













      0














      Simple ways to customize a theme's styles for magento2




      Simplest way to extend parent styles



      To extend the parent theme’s styles in your theme:



      In your theme directory, create a web/css/source sub-directory.
      Create a _extend.less file there. The path to it looks like following:

      <theme_dir>/
      │ ├── web/
      │ │ ├── css/
      │ │ │ ├── source/
      │ │ │ ├──_extend.less



      for locale specific less, use this path



      <theme_dir>/web/i18n/locale/css/source/_extend.less






      share|improve this answer



























        0














        Simple ways to customize a theme's styles for magento2




        Simplest way to extend parent styles



        To extend the parent theme’s styles in your theme:



        In your theme directory, create a web/css/source sub-directory.
        Create a _extend.less file there. The path to it looks like following:

        <theme_dir>/
        │ ├── web/
        │ │ ├── css/
        │ │ │ ├── source/
        │ │ │ ├──_extend.less



        for locale specific less, use this path



        <theme_dir>/web/i18n/locale/css/source/_extend.less






        share|improve this answer

























          0












          0








          0







          Simple ways to customize a theme's styles for magento2




          Simplest way to extend parent styles



          To extend the parent theme’s styles in your theme:



          In your theme directory, create a web/css/source sub-directory.
          Create a _extend.less file there. The path to it looks like following:

          <theme_dir>/
          │ ├── web/
          │ │ ├── css/
          │ │ │ ├── source/
          │ │ │ ├──_extend.less



          for locale specific less, use this path



          <theme_dir>/web/i18n/locale/css/source/_extend.less






          share|improve this answer













          Simple ways to customize a theme's styles for magento2




          Simplest way to extend parent styles



          To extend the parent theme’s styles in your theme:



          In your theme directory, create a web/css/source sub-directory.
          Create a _extend.less file there. The path to it looks like following:

          <theme_dir>/
          │ ├── web/
          │ │ ├── css/
          │ │ │ ├── source/
          │ │ │ ├──_extend.less



          for locale specific less, use this path



          <theme_dir>/web/i18n/locale/css/source/_extend.less







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 29 '17 at 8:39









          situeesituee

          1012 bronze badges




          1012 bronze badges





















              0














              locale-specific not possible.



              for locale assign you must need to assign store view.



              For each store wise you can create new theme and assig it.



              Hope it will clear your idea.






              share|improve this answer



























                0














                locale-specific not possible.



                for locale assign you must need to assign store view.



                For each store wise you can create new theme and assig it.



                Hope it will clear your idea.






                share|improve this answer

























                  0












                  0








                  0







                  locale-specific not possible.



                  for locale assign you must need to assign store view.



                  For each store wise you can create new theme and assig it.



                  Hope it will clear your idea.






                  share|improve this answer













                  locale-specific not possible.



                  for locale assign you must need to assign store view.



                  For each store wise you can create new theme and assig it.



                  Hope it will clear your idea.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 29 '17 at 8:43









                  Sunil PatelSunil Patel

                  1,5231 gold badge6 silver badges12 bronze badges




                  1,5231 gold badge6 silver badges12 bronze badges



























                      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%2f145026%2fhow-can-magento2-support-less-or-css-for-multi-language-locale%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?