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;
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
add a comment |
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
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
add a comment |
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
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
magento2 css language less locale
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
add a comment |
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
add a comment |
3 Answers
3
active
oldest
votes
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>
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
add a comment |
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
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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>
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
add a comment |
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>
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
add a comment |
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>
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>
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Nov 29 '17 at 8:39
situeesituee
1012 bronze badges
1012 bronze badges
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
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
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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