I've installed Magento 2.2.3 successfully and thereafter CSS does not load. After working diligently and contacting various parties, it seems there is an issue with the code.
Solved! Go to Solution.
Open your SSH terminal and run below commands :
php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush
Also make sure you have given proper permissions to directories like writable permission to generated and pub directory.
I saw and did all that a few times with the same end result
The interesting thing is there are no errors on the console. I however do not have a VersionVersion1522951621 folder under public/static/. Is such a folder supposed to be available.
@patrickwachiraYou can find the version number under pub/static/deployed_version.txt.
Once you deployed the static content and cleared the cache and did indexing try to browse the website in different browser. Possibly your browser cache/cookies may be causing the issue.
There may be an issue with the base URL configuration or URL rewrite is not enabled. I would recommend to go through the below URL and look for the solution. One of them must fix your issue. Let know otherwise.
Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.
right answer is
$ cd /var/www/html/magento2 - wamp
$ cd C:\xampp\htdocs\magento2 - xampp
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush