cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2.3 C.E has css issue after install

SOLVED

Magento 2.2.3 C.E has css issue after install

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2.2.3 C.E has css issue after install

I ended up subscribing to installatron and that worked like a charm

View solution in original post

7 REPLIES 7

Re: Magento 2.2.3 C.E has css issue after install

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.

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2.2.3 C.E has css issue after install

I saw and did all that a few times with the same end result

Re: Magento 2.2.3 C.E has css issue after install

Hello @patrickwachira
You must have run the upgrade, deploy, cache and indexing command.
Please confirm pub and var folder permissions.
Please see what error you are getting in console.
Core Magento 2.2.3 don't have such issue, try disabling extensions too from config file.
Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Magento 2.2.3 C.E has css issue after install

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.

Re: Magento 2.2.3 C.E has css issue after install

@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.

 

http://devdocs.magento.com/guides/v2.3/install-gde/trouble/tshoot_no-styles.html

 

https://magento.stackexchange.com/questions/154728/magento-2-not-loading-css-and-js-after-successful...

 

https://community.magento.com/t5/Installing-Magento-2-x/CSS-not-loading-in-the-front-and-backend-aft...

 

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

 

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Magento 2.2.3 C.E has css issue after install

I ended up subscribing to installatron and that worked like a charm

Re: Magento 2.2.3 C.E has css issue after install

right answer is

 

https://community.magento.com/t5/Installing-Magento-2-x/Magento-2-2-3-with-sample-data-install-seem-...

 

  

$ 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