I am using Magento 2.2.4 and I need to design my website with the size of 70%. I am trying to override the css by a theme /custom_theme/web/css/style.css file as follows. But it didn't work. How to resolve this?

  • Why are you adding this to direct css? Did you add these css file to your head? – Sukumar Gorai Jul 10 '18 at 12:08
  • @SukumarGorai I am creating a custom theme and I have put this file into that directory's css directory. No I didn't add this in the header – SMash Jul 12 '18 at 4:25
  • Then call your CSS file from default.xml in your theme – Sukumar Gorai Jul 12 '18 at 4:53
  • @SukumarGorai It doesn't apply the style changes even after including in the header – SMash Jul 12 '18 at 6:05

Your Answer

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

Browse other questions tagged or ask your own question.