2

How to change the less, css and java script In Magento 2? in check the style located in pub folder?. where i edit the styles?

1 Answer 1

1

You have to create custom theme first read this How to create a storefront theme?

Apply new created theme from backend given path below

Content -> Design -> Configuration

Then you have to configure compilation of style in admin path given below

Store -> Configuration -> Advanced -> Developer -> Front-end development workflow

change to

Client side less compilation

Then edit your theme styles module wise and other web/css/source (common style and js as well)

app/design/frontend/vendor_name/theme_name

run below command to set developer mode

- php bin/magento deploy:mode:set developer

and clear cache and deploy static-content

- php bin/magento cache:clean
- php bin/magento setup:static-content:deploy
2
  • every change the css code we deploy the static-content?..
    – SNS
    Commented Dec 13, 2016 at 10:43
  • No just first time, Once you configure compilation then you changes will display. Commented Dec 13, 2016 at 10:47

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.