Magento 2 custom CSS is not loading after set new custom theme set on customer loginHow to add a custom CSS file in Magento 2How to change theme programmatically for specific controller in magento 2?CSS and JS is not loading in new thememagento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento Production Custom theme custom css file is not loadingMagento 2.2.5: Overriding Admin Controller sales/orderCustom CSS not loadingMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2 custom theme CSS and other resources not loadingHow to rename the product detail tab title, and display as the last tab?

1991 (I think) Trek 850 MTB bottom bracket replacement. Maybe similar to 830?

What European countries have secret voting within the Legislature?

How do I present a future free of gender stereotypes without being jarring or overpowering the narrative?

Why did the Apple //e make a hideous noise if you inserted the disk upside down?

By RAW, how can Prestidigitation create sound?

A* pathfinding algorithm too slow

Head on collision of two black holes

Early 2000s movie about time travel, protagonist travels back to save girlfriend, then into multiple points in future

What do you call a notepad used to keep a record?

pgfmath does not work

How can I know if a PDF file was created via LaTeX or XeLaTeX?

Origin of the convolution theorem

Android Studio 3.6 canary 6 - Gradle throwing DefaultProjectSyncIssues exception

Is it okay to fade a human face just to create some space to place important content over it?

Why was Pan Am Flight 103 flying over Lockerbie?

Closest Proximity of Oceans to Freshwater Springs

Making a wall made from glass bricks

What election rules and voting rights are guaranteed by the US Constitution?

Does a lens with a bigger max. aperture focus faster than a lens with a smaller max. aperture?

Explain usage of "kaved" re Moshe's raising his hands w/ war of Amaleq

On what to compliment someone with anorexia in order to improve their body image?

13th chords on guitar

Cooking a nice pan seared steak for picky eaters

Fully submerged water bath for stove top baking?



Magento 2 custom CSS is not loading after set new custom theme set on customer login


How to add a custom CSS file in Magento 2How to change theme programmatically for specific controller in magento 2?CSS and JS is not loading in new thememagento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento Production Custom theme custom css file is not loadingMagento 2.2.5: Overriding Admin Controller sales/orderCustom CSS not loadingMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2 custom theme CSS and other resources not loadingHow to rename the product detail tab title, and display as the last tab?






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








0















I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
by using fallowing line
$objectManager->get(MagentoFrameworkViewDesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');



all working fine but when I write custom CSS it not loading it generating in pub folder but not loading
I have place custom CSS Magento_Theme/layout/default_head_blocks.xml



my XML file



 <?xml version="1.0"?>

<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/font-awesome.min.css" />
<css src="css/test.css" />

</head>
</page>


but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how



in magento 1 by using below code I can set easily I want same in magento 2 any idea
Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');.










share|improve this question






























    0















    I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
    by using fallowing line
    $objectManager->get(MagentoFrameworkViewDesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');



    all working fine but when I write custom CSS it not loading it generating in pub folder but not loading
    I have place custom CSS Magento_Theme/layout/default_head_blocks.xml



    my XML file



     <?xml version="1.0"?>

    <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/font-awesome.min.css" />
    <css src="css/test.css" />

    </head>
    </page>


    but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how



    in magento 1 by using below code I can set easily I want same in magento 2 any idea
    Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');.










    share|improve this question


























      0












      0








      0








      I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
      by using fallowing line
      $objectManager->get(MagentoFrameworkViewDesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');



      all working fine but when I write custom CSS it not loading it generating in pub folder but not loading
      I have place custom CSS Magento_Theme/layout/default_head_blocks.xml



      my XML file



       <?xml version="1.0"?>

      <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/font-awesome.min.css" />
      <css src="css/test.css" />

      </head>
      </page>


      but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how



      in magento 1 by using below code I can set easily I want same in magento 2 any idea
      Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');.










      share|improve this question
















      I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
      by using fallowing line
      $objectManager->get(MagentoFrameworkViewDesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');



      all working fine but when I write custom CSS it not loading it generating in pub folder but not loading
      I have place custom CSS Magento_Theme/layout/default_head_blocks.xml



      my XML file



       <?xml version="1.0"?>

      <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/font-awesome.min.css" />
      <css src="css/test.css" />

      </head>
      </page>


      but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how



      in magento 1 by using below code I can set easily I want same in magento 2 any idea
      Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');.







      magento2 css custom-theme






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 21 at 10:10







      Pawankumar

















      asked Jun 20 at 18:54









      PawankumarPawankumar

      4085 silver badges19 bronze badges




      4085 silver badges19 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Also check that your custom css is found or give 404 error.



          Go to view code, find your css/test.css path and click it. Here you can check that css is found or it gives 404 error.






          share|improve this answer























          • no it not showing in browser

            – Pawankumar
            Jun 21 at 8:37











          • It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…

            – Chirag Parmar
            Jun 21 at 9:24











          • given right path web/css/test.css

            – Pawankumar
            Jun 21 at 9:27













          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%2f279076%2fmagento-2-custom-css-is-not-loading-after-set-new-custom-theme-set-on-customer-l%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Also check that your custom css is found or give 404 error.



          Go to view code, find your css/test.css path and click it. Here you can check that css is found or it gives 404 error.






          share|improve this answer























          • no it not showing in browser

            – Pawankumar
            Jun 21 at 8:37











          • It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…

            – Chirag Parmar
            Jun 21 at 9:24











          • given right path web/css/test.css

            – Pawankumar
            Jun 21 at 9:27















          0














          Also check that your custom css is found or give 404 error.



          Go to view code, find your css/test.css path and click it. Here you can check that css is found or it gives 404 error.






          share|improve this answer























          • no it not showing in browser

            – Pawankumar
            Jun 21 at 8:37











          • It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…

            – Chirag Parmar
            Jun 21 at 9:24











          • given right path web/css/test.css

            – Pawankumar
            Jun 21 at 9:27













          0












          0








          0







          Also check that your custom css is found or give 404 error.



          Go to view code, find your css/test.css path and click it. Here you can check that css is found or it gives 404 error.






          share|improve this answer













          Also check that your custom css is found or give 404 error.



          Go to view code, find your css/test.css path and click it. Here you can check that css is found or it gives 404 error.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 21 at 5:24









          Chirag ParmarChirag Parmar

          668 bronze badges




          668 bronze badges












          • no it not showing in browser

            – Pawankumar
            Jun 21 at 8:37











          • It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…

            – Chirag Parmar
            Jun 21 at 9:24











          • given right path web/css/test.css

            – Pawankumar
            Jun 21 at 9:27

















          • no it not showing in browser

            – Pawankumar
            Jun 21 at 8:37











          • It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…

            – Chirag Parmar
            Jun 21 at 9:24











          • given right path web/css/test.css

            – Pawankumar
            Jun 21 at 9:27
















          no it not showing in browser

          – Pawankumar
          Jun 21 at 8:37





          no it not showing in browser

          – Pawankumar
          Jun 21 at 8:37













          It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…

          – Chirag Parmar
          Jun 21 at 9:24





          It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…

          – Chirag Parmar
          Jun 21 at 9:24













          given right path web/css/test.css

          – Pawankumar
          Jun 21 at 9:27





          given right path web/css/test.css

          – Pawankumar
          Jun 21 at 9:27

















          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%2f279076%2fmagento-2-custom-css-is-not-loading-after-set-new-custom-theme-set-on-customer-l%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

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form