I want to override the body{} tag of style-m.css in my theme.

The code of .themename.less in vendor\theme\web\css\source is

body {
    word-wrap:break-word !important;

but I cant see the changes.On inspect element the word-wrap property in not applied on body.

How to do that?


Run php bin/magento setup:upgrade command and then check.

  • thank you, it worked. I was deploying static content without setup:upgrade. – akshay billore Jan 11 '18 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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