I am having some strange issues. Css is not loading only for the menu in admin side. Apart from that, everything is working fine. All js and css are unmerged

enter image description here

Page source

Page source

I've tried these commands

rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/*
php bin/magento setup:static-content:deploy -f
chmod -R 777 var/ pub/ generated/
  • Any browser console errors? Commented May 28, 2019 at 13:20
  • Try this command: php bin/magento setup:static-content:deploy -f de_DE Commented May 28, 2019 at 13:28
  • @RajMohanR no. we dont get any Commented May 28, 2019 at 13:35
  • @ChandraPrakashGupta yes we already did Commented May 28, 2019 at 13:35

2 Answers 2


Put magento's default styles.css in pub/static/adminhtml/Magento/backend/en_US/css/ folder and check it.

Is it Working or Not? If it is working then please check Magento's core file. vendor/magento/theme-adminhtml-backend/web/css

Might be there is someone changed.

  • 1
    thanks, it worked perfectly. Commented Jun 1, 2019 at 6:44

There are so many reasons that CSS & JavaScript are not loading. Follow the below steps; it might help to solve your problem.

  1. Set the proper permissions and ownership. You should set the proper filesystem permissions and ownership: File system permissions
  2. Deploy the static content (remove pub/static & var, generated folder then run s:s:d command)
  3. Ensure you have not missed the .htaccess files: What .htaccess files does Magento 2 use?
  4. The problem could be caused by a lack of memory for the Less compiler. How to fix

I hope it helps!

  • I did everything you said, still not working Commented May 29, 2019 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.