cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2 css not working

SOLVED

Re: Magento 2.2 css not working

Hi @SiiW

 

Glad to know that you have resolved your issue !!

 

if you found our post helpful then kindly click on kudos 

 

Happy to help and keep helping Smiley Happy

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2.2 css not working

The issue continues for me.

 

https://lcdtcorp.com/pub/static/frontend/Codazon/fastest_bigmarket/es_AR/css/ 

is not found.

 

I tried every suggestion here, even adding the .htaccess.

 

But I really don't understand what "media directory being out of date" means. I already copy files from a working version into the website. 

Re: Magento 2.2 css not working

1. Open up app/etc/di.xml find the path “Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink” and replace to “Magento\Framework\App\View\Asset\MaterializationStrategy\Copy”

2. reload page it will work great!

 

http://www.dckap.com/blog/magento-2-admin-links-not-working-in-windows/

Re: Magento 2.2 css not working

On Ubuntu 16.04, using apache2 I was also facing same issue.

Activated the mod_rewrite module with

sudo a2enmod rewrite

and restartd the apache with

sudo service apache2 restart

My issue resolved.

Re: Magento 2.2 css not working

You need to make sure you have all the .htaccess file in the right locations for this to work.

There are .htaccess file in:-

  • <Magento Root>/.htacess
  • <Magento Root>/pub/.htacess
  • <Magento Root>/pub/static/.htacess

Just copy them from a previous installation and then it should work.

Re: Magento 2.2 css not working

Hello, I tried this but it still won't work for me

Re: Magento 2.2 css not working

I have same issue

Re: Magento 2.2 css not working

Stores>Configuration>Advanced>Developer>Sign Static Files (dev_static_sign) -> No
This solution working for me. Thanks @Manthan Dave  Smiley Happy

Re: Magento 2.2 css not working

you can add this to your app/etc/config.php

'system' => [
'default' => [
'general' => [
'locale' => [
'code' => 'en_US'
]
],
'dev' => [
'static' => [
'sign' => '0' //THIS MAKE THE MAGIC
]
]
],
]