CSS Not Reflecting in Magento 2Best way to extend module less found in web/css/source/module, like _minicart.less?Magento 2 styling / CSS not displaying in IE 9Magento 2 custom theme layout xml and css not workingHow to “override” default Magento2 “Luma” Theme with a Custom ThemeMagento 2 CSS does not applyBest way to locate LESS and CSS variables?Changing CSS files in Magento 2.1.2Magento Theme css color not changingMagento2 custom css not included in head after upgrading the websiteError: Exception #0 (InvalidArgumentException): Unable to serialize value - Produced by custom ThemeMagento 2 Theme Development - grunt watch not detecting changes of custom LESS file

"It is what it is"

Strange LED behavior

Acoustic guitar chords' positions vs those of a Bass guitar

What does the following chess proverb mean: "Chess is a sea where a gnat may drink from and an elephant may bathe in."

Do I have to mention my main character's age?

Is it better to deliver many low-value stories or few high-value stories?

Considerations when providing money to only one child out of two

Cargo capacity of a kayak

How does mathematics work?

Is there any direct train from LHR Airport to Newcastle Gateshead?

1025th term of the given sequence.

Piece of fabric in planter, how to use it?

Is it possible to pass generic lambda as non-template argument

Can I use Sitecore's Configuration patching mechanics for my Identity Server configuration?

Do I care if the housing market has gone up or down, if I'm moving from one house to another?

Is it better to merge "often" or only after completion do a big merge of feature branches?

What is the metal bit in the front of this propeller spinner?

Is it ethical to tell my teaching assistant that I like him?

How to create quantum circuits from scratch

Can I make Ubuntu 18.04 switch between multiple windows of the program by just clicking the icon?

Why is there an extra "t" in Lemmatization?

How did pilots avoid thunderstorms and related weather before “reliable” airborne weather radar was introduced on airliners?

Why is DC so, so, so Democratic?

Stellen - Putting, or putting away?



CSS Not Reflecting in Magento 2


Best way to extend module less found in web/css/source/module, like _minicart.less?Magento 2 styling / CSS not displaying in IE 9Magento 2 custom theme layout xml and css not workingHow to “override” default Magento2 “Luma” Theme with a Custom ThemeMagento 2 CSS does not applyBest way to locate LESS and CSS variables?Changing CSS files in Magento 2.1.2Magento Theme css color not changingMagento2 custom css not included in head after upgrading the websiteError: Exception #0 (InvalidArgumentException): Unable to serialize value - Produced by custom ThemeMagento 2 Theme Development - grunt watch not detecting changes of custom LESS file






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








2















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
























  • 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











  • did you get a solution?

    – Mohit Rane
    Jul 13 at 4:25

















2















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
























  • 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











  • did you get a solution?

    – Mohit Rane
    Jul 13 at 4:25













2












2








2


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









fmsthird

3,5694 gold badges7 silver badges31 bronze badges




3,5694 gold badges7 silver badges31 bronze badges










asked Aug 1 '16 at 11:20









Rajkumar .ERajkumar .E

1,8155 gold badges17 silver badges47 bronze badges




1,8155 gold badges17 silver badges47 bronze badges












  • 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











  • did you get a solution?

    – Mohit Rane
    Jul 13 at 4:25

















  • 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











  • did you get a solution?

    – Mohit Rane
    Jul 13 at 4:25
















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













did you get a solution?

– Mohit Rane
Jul 13 at 4:25





did you get a solution?

– Mohit Rane
Jul 13 at 4:25










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,9653 gold badges11 silver badges33 bronze badges




      1,9653 gold badges11 silver badges33 bronze badges












      • 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 bronze badge




          111 bronze badge





















              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

                  2084 bronze badges




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

                      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?