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?
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!
Sorry for the question, I am still a beginner in Magento, where do I run those commands?
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
I ran the commands and I got an error, now everything is gone from the website, its not even working
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!
Shall I run the commands in the '/'directory, or in '/var/www/websitename/application/'where all the website files are located?
Hi @zakiijrgma739a ,
You need to run these commands in the magento root directory where your magento codebase resides.
Thanks!
You need to run these commands in ssh panel. Login to ssh panel Go to your magento root directory and run commands.
it's not common sense to have to run all these commands for each simple css edit!!!