cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted

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?

8 REPLIES 8
Highlighted

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!

Highlighted

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?

Highlighted

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 

Highlighted

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

Highlighted

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!

Highlighted

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?

Highlighted

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!

Highlighted

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