1

I created a custom theme, that inherits from magento/blank theme. And I am able to override and extend css classes that are defined in

vendor/magento/theme-frontend-blank/web/css/source/*.less 

using the "Adding structured changes" section in the documentation (http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/css-guide/css_quick_guide_approach.html).

However, the property I want to change is defined in

vendor/magento/theme-frontend-blank/Magento_Newsletter/web/css/source/_module.less

overriding the class in my _module_extend.less doesn't work.

What is the right magento way to do that?

Thanks!

3
  • Have you deployed setup:static-content:deploy ? Commented Sep 4, 2016 at 12:48
  • I'm in developer mode and using grunt to compile less files. It works perfectly with other css classes I extend/override. Commented Sep 4, 2016 at 12:51
  • Please add some more information. Commented Sep 4, 2016 at 12:55

1 Answer 1

0

You will need to create _extend.less within the module inside your theme like so:

app/design/frontend/your-store/your-theme/Magento_Newsletter/web/css/source/_extend.less
0

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.