CSS Not Reflecting in Magento 2Best way to extend module less found in web/css/source/module, like _minicart.less?Edited CSS but not reflecting even after flushing Magento cachemagento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Grunt: Destination [src path] not written because no source files were foundMagento 2 - Not updating CSSMagento 2: Css changes not reflectingFrequent Css and js changes not reflecting Magento 2 in Windows environmentGrunt, .less, and Live Reload - Can't get them workingMagento 2.2.5: Add, Update and Delete existing products Custom Options
Why does Central Limit Theorem break down in my simulation?
Was it really inappropriate to write a pull request for the company I interviewed with?
What is better: yes / no radio, or simple checkbox?
Writing text next to a table
What should I do when a paper is published similar to my PhD thesis without citation?
Can one live in the U.S. and not use a credit card?
Do Cubics always have one real root?
How should I solve this integral with changing parameters?
Is it a Cyclops number? "Nobody" knows!
Has a sovereign Communist government ever run, and conceded loss, on a fair election?
How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?
Having the player face themselves after the mid-game
What does *dead* mean in *What do you mean, dead?*?
Is divide-by-zero a security vulnerability?
Giving a career talk in my old university, how prominently should I tell students my salary?
Are all players supposed to be able to see each others' character sheets?
Factor Rings over Finite Fields
Is there a way to make cleveref distinguish two environments with the same counter?
Is there stress on two letters on the word стоят
Trocar background-image com delay via jQuery
Create chunks from an array
Professor forcing me to attend a conference, I can't afford even with 50% funding
Origin of the word “pushka”
Can the Witch Sight warlock invocation see through the Mirror Image spell?
CSS Not Reflecting in Magento 2
Best way to extend module less found in web/css/source/module, like _minicart.less?Edited CSS but not reflecting even after flushing Magento cachemagento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Grunt: Destination [src path] not written because no source files were foundMagento 2 - Not updating CSSMagento 2: Css changes not reflectingFrequent Css and js changes not reflecting Magento 2 in Windows environmentGrunt, .less, and Live Reload - Can't get them workingMagento 2.2.5: Add, Update and Delete existing products Custom Options
I have customized Magento 2 home page using custom theme extends from luma theme.
While Header customization, change color "header.wrapper" it's not reflecting. But some other properties are working.
For Example Change body background color its working fine. Some properties class only not working.
Example:
I added my less file
vendor/Themename/web/css/mycss.less.
.panel.wrapper
background-color: green;
This is my default.xml file:
vendor/Themename/Magento_Theme/default.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/mycss.css"/>
</head>
</page>
I am using grunt compilation, so grunt convert less to css and store to pub/static. and mycss file calling while execute this page, but not reflecting.
But I change via firebug its working fine.
Why? Suggest me how to solve this?.
magento2 theme css
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have customized Magento 2 home page using custom theme extends from luma theme.
While Header customization, change color "header.wrapper" it's not reflecting. But some other properties are working.
For Example Change body background color its working fine. Some properties class only not working.
Example:
I added my less file
vendor/Themename/web/css/mycss.less.
.panel.wrapper
background-color: green;
This is my default.xml file:
vendor/Themename/Magento_Theme/default.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/mycss.css"/>
</head>
</page>
I am using grunt compilation, so grunt convert less to css and store to pub/static. and mycss file calling while execute this page, but not reflecting.
But I change via firebug its working fine.
Why? Suggest me how to solve this?.
magento2 theme css
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
which file you have modified? Is your code deployed to pub/static ?
– amitshree
Aug 1 '16 at 17:49
@amitshree I update my question.
– Rajkumar .E
Aug 2 '16 at 4:17
see this post magento.stackexchange.com/questions/173016/…, it has been very useful for me
– Herve Tribouilloy
Dec 30 '18 at 14:14
add a comment |
I have customized Magento 2 home page using custom theme extends from luma theme.
While Header customization, change color "header.wrapper" it's not reflecting. But some other properties are working.
For Example Change body background color its working fine. Some properties class only not working.
Example:
I added my less file
vendor/Themename/web/css/mycss.less.
.panel.wrapper
background-color: green;
This is my default.xml file:
vendor/Themename/Magento_Theme/default.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/mycss.css"/>
</head>
</page>
I am using grunt compilation, so grunt convert less to css and store to pub/static. and mycss file calling while execute this page, but not reflecting.
But I change via firebug its working fine.
Why? Suggest me how to solve this?.
magento2 theme css
I have customized Magento 2 home page using custom theme extends from luma theme.
While Header customization, change color "header.wrapper" it's not reflecting. But some other properties are working.
For Example Change body background color its working fine. Some properties class only not working.
Example:
I added my less file
vendor/Themename/web/css/mycss.less.
.panel.wrapper
background-color: green;
This is my default.xml file:
vendor/Themename/Magento_Theme/default.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/mycss.css"/>
</head>
</page>
I am using grunt compilation, so grunt convert less to css and store to pub/static. and mycss file calling while execute this page, but not reflecting.
But I change via firebug its working fine.
Why? Suggest me how to solve this?.
magento2 theme css
magento2 theme css
edited Feb 2 at 2:10
magefms
1,258220
1,258220
asked Aug 1 '16 at 11:20
Rajkumar .ERajkumar .E
1,70551645
1,70551645
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
which file you have modified? Is your code deployed to pub/static ?
– amitshree
Aug 1 '16 at 17:49
@amitshree I update my question.
– Rajkumar .E
Aug 2 '16 at 4:17
see this post magento.stackexchange.com/questions/173016/…, it has been very useful for me
– Herve Tribouilloy
Dec 30 '18 at 14:14
add a comment |
which file you have modified? Is your code deployed to pub/static ?
– amitshree
Aug 1 '16 at 17:49
@amitshree I update my question.
– Rajkumar .E
Aug 2 '16 at 4:17
see this post magento.stackexchange.com/questions/173016/…, it has been very useful for me
– Herve Tribouilloy
Dec 30 '18 at 14:14
which file you have modified? Is your code deployed to pub/static ?
– amitshree
Aug 1 '16 at 17:49
which file you have modified? Is your code deployed to pub/static ?
– amitshree
Aug 1 '16 at 17:49
@amitshree I update my question.
– Rajkumar .E
Aug 2 '16 at 4:17
@amitshree I update my question.
– Rajkumar .E
Aug 2 '16 at 4:17
see this post magento.stackexchange.com/questions/173016/…, it has been very useful for me
– Herve Tribouilloy
Dec 30 '18 at 14:14
see this post magento.stackexchange.com/questions/173016/…, it has been very useful for me
– Herve Tribouilloy
Dec 30 '18 at 14:14
add a comment |
3 Answers
3
active
oldest
votes
Create your theme on below path given instead of vendor folder
appdesignfrontendvendorthemename
and apply theme from admin and clear cache, whenever you add new files in your theme you need to deploy static content from cmd command given below.
php bin/magento setup:static-content:deploy
I already did this its not work for me, css working fine, but when chage "header.wrapper"(home page header) its doen't work.
– Rajkumar .E
Aug 5 '16 at 11:50
add a comment |
-app
--design
---frontend
----VendorName
-----VendorTheme
------Magento-Theme
-------layout
--------default.xml
--------default_head_blocks.xml
------media
-------preview.png
------web
-------css
--------yourcss.css
------registration.php
------theme.xml
add a comment |
I am replying to this question, as it hadn't been answered effectively yet.
CSS is not reflecting because there is an issue with the cache. So, to fix the issue, you have to clear the cache. To do it, run the following codes one by one:
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
php bin/magento cache:flush
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%2f128401%2fcss-not-reflecting-in-magento-2%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
Create your theme on below path given instead of vendor folder
appdesignfrontendvendorthemename
and apply theme from admin and clear cache, whenever you add new files in your theme you need to deploy static content from cmd command given below.
php bin/magento setup:static-content:deploy
I already did this its not work for me, css working fine, but when chage "header.wrapper"(home page header) its doen't work.
– Rajkumar .E
Aug 5 '16 at 11:50
add a comment |
Create your theme on below path given instead of vendor folder
appdesignfrontendvendorthemename
and apply theme from admin and clear cache, whenever you add new files in your theme you need to deploy static content from cmd command given below.
php bin/magento setup:static-content:deploy
I already did this its not work for me, css working fine, but when chage "header.wrapper"(home page header) its doen't work.
– Rajkumar .E
Aug 5 '16 at 11:50
add a comment |
Create your theme on below path given instead of vendor folder
appdesignfrontendvendorthemename
and apply theme from admin and clear cache, whenever you add new files in your theme you need to deploy static content from cmd command given below.
php bin/magento setup:static-content:deploy
Create your theme on below path given instead of vendor folder
appdesignfrontendvendorthemename
and apply theme from admin and clear cache, whenever you add new files in your theme you need to deploy static content from cmd command given below.
php bin/magento setup:static-content:deploy
answered Aug 2 '16 at 9:28
Dipesh RanganiDipesh Rangani
1,8423931
1,8423931
I already did this its not work for me, css working fine, but when chage "header.wrapper"(home page header) its doen't work.
– Rajkumar .E
Aug 5 '16 at 11:50
add a comment |
I already did this its not work for me, css working fine, but when chage "header.wrapper"(home page header) its doen't work.
– Rajkumar .E
Aug 5 '16 at 11:50
I already did this its not work for me, css working fine, but when chage "header.wrapper"(home page header) its doen't work.
– Rajkumar .E
Aug 5 '16 at 11:50
I already did this its not work for me, css working fine, but when chage "header.wrapper"(home page header) its doen't work.
– Rajkumar .E
Aug 5 '16 at 11:50
add a comment |
-app
--design
---frontend
----VendorName
-----VendorTheme
------Magento-Theme
-------layout
--------default.xml
--------default_head_blocks.xml
------media
-------preview.png
------web
-------css
--------yourcss.css
------registration.php
------theme.xml
add a comment |
-app
--design
---frontend
----VendorName
-----VendorTheme
------Magento-Theme
-------layout
--------default.xml
--------default_head_blocks.xml
------media
-------preview.png
------web
-------css
--------yourcss.css
------registration.php
------theme.xml
add a comment |
-app
--design
---frontend
----VendorName
-----VendorTheme
------Magento-Theme
-------layout
--------default.xml
--------default_head_blocks.xml
------media
-------preview.png
------web
-------css
--------yourcss.css
------registration.php
------theme.xml
-app
--design
---frontend
----VendorName
-----VendorTheme
------Magento-Theme
-------layout
--------default.xml
--------default_head_blocks.xml
------media
-------preview.png
------web
-------css
--------yourcss.css
------registration.php
------theme.xml
answered Sep 30 '16 at 18:26
Phillip HuynhPhillip Huynh
111
111
add a comment |
add a comment |
I am replying to this question, as it hadn't been answered effectively yet.
CSS is not reflecting because there is an issue with the cache. So, to fix the issue, you have to clear the cache. To do it, run the following codes one by one:
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
php bin/magento cache:flush
add a comment |
I am replying to this question, as it hadn't been answered effectively yet.
CSS is not reflecting because there is an issue with the cache. So, to fix the issue, you have to clear the cache. To do it, run the following codes one by one:
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
php bin/magento cache:flush
add a comment |
I am replying to this question, as it hadn't been answered effectively yet.
CSS is not reflecting because there is an issue with the cache. So, to fix the issue, you have to clear the cache. To do it, run the following codes one by one:
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
php bin/magento cache:flush
I am replying to this question, as it hadn't been answered effectively yet.
CSS is not reflecting because there is an issue with the cache. So, to fix the issue, you have to clear the cache. To do it, run the following codes one by one:
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
php bin/magento cache:flush
answered Dec 30 '18 at 14:01
Md. Ehsanul Haque KananMd. Ehsanul Haque Kanan
1734
1734
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%2f128401%2fcss-not-reflecting-in-magento-2%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
which file you have modified? Is your code deployed to pub/static ?
– amitshree
Aug 1 '16 at 17:49
@amitshree I update my question.
– Rajkumar .E
Aug 2 '16 at 4:17
see this post magento.stackexchange.com/questions/173016/…, it has been very useful for me
– Herve Tribouilloy
Dec 30 '18 at 14:14