CSS Not Reflecting in Magento 2Best way to extend module less found in web/css/source/module, like...

What would be the most expensive material to an intergalactic society?

Do Paladin Auras of Differing Oaths Stack?

Numerical value of Determinant far from what it is supposed to be

Having the player face themselves after the mid-game

What is the purpose of a disclaimer like "this is not legal advice"?

Translation of 答えを知っている人はいませんでした

What should I do when a paper is published similar to my PhD thesis without citation?

Are these two graphs isomorphic? Why/Why not?

Rationale to prefer local variables over instance variables?

Why aren't there more Gauls like Obelix?

Short scifi story where reproductive organs are converted to produce "materials", pregnant protagonist is "found fit" to be a mother

If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?

What will happen if my luggage gets delayed?

Is it possible to clone a polymorphic object without manually adding overridden clone method into each derived class in C++?

Would those living in a "perfect society" not understand satire

School performs periodic password audits. Is my password compromised?

Why does Central Limit Theorem break down in my simulation?

Use Mercury as quenching liquid for swords?

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

Difference between `nmap local-IP-address` and `nmap localhost`

Are all players supposed to be able to see each others' character sheets?

Cycles on the torus

Should we avoid writing fiction about historical events without extensive research?



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

                      “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

                      How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

                      夢乃愛華...