After installing, images and stylesheets do not load; only text displays, no graphics
Details
The path to images and stylesheets is not correct, either because of an incorrect base URL or because server rewrites (CentOS, Ubuntu) are not set up properly. To confirm this is the case, use a web browser inspector to check the paths to static assets and verify those assets are located on the Magento file system.
Magento static assets should be located under <your Magento install dir>/pub/static/
(there should be frontend
and adminhtml
directories).
Solution
-
Verify your server rewrites setting and your Magento server鈥檚 base URL and try again. If you set up the
AllowOverride
directive incorrectly, static files aren鈥檛 served from the correct location. -
If the Magento application is in production mode, try deploying static view files using the command
magento setup:static-content:deploy
.
Find us on