I am new to Magento. I am building a new eCommerce website for our company, which sells thousand of products. I have installed Magento2.1.12 via xampp yesterday and started configuring the site. After setting up Stores - Configuration - Web; Unsecure and secure links, the Magento admin panel and front end layouts have completely changed. It looks as if CSS is not working i.e. no styling both in admin panel and front end. Does anyone know what have I done wrong and how to retrieve the default settings back?

Here are the screenshots for Admin panel and folder structure.

enter image description here

enter image description here

Your help would be appreciated! TIA!

  • Execute this command one by one: php bin/magento setup:upgrade. After execute php bin/magento setup:static-content:deploy -f. I hope this will help you. – Dhaduk Mitesh Mar 31 '18 at 4:19
  1. Clean the content folder of pub/static, var/cache, var/page_cache, var/view_preprocessed except the .htaccess

  2. Launch this command : php bin/magento setup:static-content:deploy -f

You can find more informations here.

| improve this answer | |
  • Thank you for the responses! @Prince, I have followed what you've suggested but after <your Magento install dir>/bin/magento setup:static-content:deploy -f command I am getting "The filename, directory name, or volume label syntax is incorrect" error. I am unable to figure out the cause and solution for the same. Can you please suggest a solution? Thanks! – Angel Apr 2 '18 at 12:45
  • You have to execute this command in the root project location – PЯINCƏ Apr 2 '18 at 13:53
  • My root directory(Magento2) is under htdocs. Hence the path is: C:\xampp\htdocs\Magento2>cd bin/magento setup:static-content:deploy -f. Which gave me the same error as I mentioned earlier. Do you think if the symbol such as, semi-colon or space has an issue? – Angel Apr 2 '18 at 14:22
  • not cd but php – PЯINCƏ Apr 2 '18 at 14:23
  • when I gave 'php' here is what I got: 'php' is not recognized as an internal or external command, operable program or batch file. – Angel Apr 2 '18 at 14:28

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.