I have several question about how to modify files in Magento2.

I only have an FTP user. Is possible to modify .less and .css files using FTP

I read something about compiling the .less, how can i do that using only FTP?

Is the compiling automatic? The system has installed grunt.

Any explanation is useful because i'm really new to this Magento system.

Thank you very much!

1 Answer 1


Do not directly change the CSS files

You can edit the CSS files via FTP and it will reflect on the frontend, but if anyone pulls down the website and makes a change to the less files then you will lose all your changes to the CSS files.

You need to compile LESS manually so editing the files alone is not enough, if it's currently being compiled by Grunt then you can follow these instructions - http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/css_debug.html. But I wouldn't advise compiling on a live website with Grunt.

I know some people work by compiling all the assets on a staging environment and when they deploy to the live website they'll zip up the static assets from the staging website and deploy them. It minimises downtime/deployment time and ensures the code is the way you tested.

  • Thanks, but i can do that grunt compilation using only FTP? Jun 26, 2017 at 15:56
  • If you have SSH access to the server you can, I'm not sure how you would manage it with FTP only.
    – Ben Crook
    Jun 26, 2017 at 16:29
  • +1, i think i have at least 2 problems, one i can edit the files (.css or .less) via FTP, so maybe that is a permition's problem. And 2 i don't have access to the server to execute commands. And i try to install the site in localhost 3 times so i can have a dev environment, but i didn't succeed. 2 of the magento installation have fails, and another didn't end. =( Jun 27, 2017 at 12:21
  • I'd definitely recommend setting up a local dev environment, if you have any issues the Magento 2 GitHub repo may have some fixes as there are many known issues that have workarounds. Btw, if my answer does answer your question can you please mark it as accepted by clicking on the tick icon next to it.
    – Ben Crook
    Jun 27, 2017 at 13:04
  • Yes, that's what i'm trying to do, but didn't succeed. I'm using a win 10, with xampp environment. And now is the 4 time i try but Magento get stuck in some parts =( Jun 27, 2017 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.