I want to modify all css files in path:

app/code/Aheadworks/Autorelated/view/frontend/web/css Path to files

What is the best way to do it?

1 Answer 1


You can add in your theme app/design/fronted/PackageTheme/YourTheme/Aheadworks/Autorelated/web/css, and copy the CSS file from app/code/Aheadworks/Autorelated/view/frontend/web/css, and there you can change it.

For edit in LESS file, you must add _module.less file in this path app/code/Aheadworks/Autorelated/view/frontend/web/css/source and you can copy the CSS content from CSS files in _module.less and you can edit. After that you must run php bin/magento setup:static-content:deploy

  • Thank you, I know this way. But I asked how to modify css via LESS? Example I have file app/code/Aheadworks/Autorelated/view/frontend/web/css/category.css and I want to override this file using LESS.
    – Kostiantyn
    Commented Mar 27, 2018 at 7:25
  • 1
    I filled out the answer
    – St3phan
    Commented Mar 27, 2018 at 7:29

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.