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













0















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?.










share|improve this question
















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















0















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?.










share|improve this question
















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













0












0








0


0






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?.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










3 Answers
3






active

oldest

votes


















0














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





share|improve this answer























  • 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


















0














-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






share|improve this answer






























    0














    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:



    1. rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*

    2. php bin/magento setup:static-content:deploy

    3. php bin/magento cache:clean

    4. php bin/magento cache:flush





    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%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









      0














      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





      share|improve this answer























      • 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















      0














      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





      share|improve this answer























      • 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













      0












      0








      0







      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





      share|improve this answer













      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






      share|improve this answer












      share|improve this answer



      share|improve this answer










      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

















      • 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













      0














      -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






      share|improve this answer



























        0














        -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






        share|improve this answer

























          0












          0








          0







          -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






          share|improve this answer













          -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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 30 '16 at 18:26









          Phillip HuynhPhillip Huynh

          111




          111





















              0














              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:



              1. rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*

              2. php bin/magento setup:static-content:deploy

              3. php bin/magento cache:clean

              4. php bin/magento cache:flush





              share|improve this answer



























                0














                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:



                1. rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*

                2. php bin/magento setup:static-content:deploy

                3. php bin/magento cache:clean

                4. php bin/magento cache:flush





                share|improve this answer

























                  0












                  0








                  0







                  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:



                  1. rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*

                  2. php bin/magento setup:static-content:deploy

                  3. php bin/magento cache:clean

                  4. php bin/magento cache:flush





                  share|improve this answer













                  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:



                  1. rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*

                  2. php bin/magento setup:static-content:deploy

                  3. php bin/magento cache:clean

                  4. php bin/magento cache:flush






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 30 '18 at 14:01









                  Md. Ehsanul Haque KananMd. Ehsanul Haque Kanan

                  1734




                  1734



























                      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%2f128401%2fcss-not-reflecting-in-magento-2%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

                      Nidaros erkebispedøme

                      Birsay

                      Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?