cancel
Showing results for 
Search instead for 
Did you mean: 

CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

I tried to change a color in my css files, I searched my directory (all folders) where this color is and I replaced it with the new color, then I uploaded the files to the server through SSH, then I cleared the browser cache + Magento's Javascript/CSS cache but nothing is changed, the old color is still there. Am I missing something? How can I solve this issue?

10 REPLIES 10

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

Hi @zakiijrgma739a ,

 

You need to deploy your changes using below commands.

rm -rf var/*

rm -rf pub/static/frontend/* -R

php bin/magento setup:static-content:deploy -f

chmod 0777 var -R

chmod 0777 pub/static/frontend/* -R

php bin/magento c:f

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

Sorry for the question, I am still a beginner in Magento, where do I run those commands?

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

Hi @zakiijrgma739a ,

 

You need to run these commands in ssh panel. 

Login to ssh panel

Go to your magento root directory and run commands.

 

Hope this helps you!

Problem 

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

I ran the commands and I got an error, now everything is gone from the website, its not even working

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

Hi @zakiijrgma739a ,

 

Can you run below commands on your site 

 

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy -f

php bin/magento c:f

chmod 777 -R var/* generated/* pub/static/*

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

Shall I run the commands in the '/'directory, or in '/var/www/websitename/application/'where all the website files are located?

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

Hi @zakiijrgma739a ,

 

You need to run these commands in the magento root directory where your magento codebase resides.

 

Thanks!

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

You need to run these commands in ssh panel. Login to ssh panel Go to your magento root directory and run commands.

snaptube vidmate word to pdf

Re: CSS changes not reflecting in magento ver 2.3.4 even after flushing CSS

it's not common sense to have to run all these commands for each simple css edit!!!