2

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? – Raj Mohan R May 28 at 13:20
  • Try this command: php bin/magento setup:static-content:deploy -f de_DE – Chandra Prakash Gupta May 28 at 13:28
  • @RajMohanR no. we dont get any – Bhakti Thakkar May 28 at 13:35
  • @ChandraPrakashGupta yes we already did – Bhakti Thakkar May 28 at 13:35
3

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.

0

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 – Bhakti Thakkar May 29 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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