2

Hello I am new to magento2 I am trying to add custom css in my project, but it is not reflecting. I have included the file in default_head_block.xml also the current application mode is on development. Help appreciatedenter image description here

7
  • you should look at this post : magento.stackexchange.com/a/108690/13859 Commented Jun 28, 2017 at 10:23
  • It is about creating custom theme, what if I have to add only a css file @viCky Commented Jun 28, 2017 at 10:31
  • yes, creating the custom theme will allow you to add your css file. You do not need to add anything else or change anything else. Commented Jun 28, 2017 at 10:39
  • it worked thank you @viCky Commented Jul 6, 2017 at 12:12
  • 1
    I created a custom theme and as given in the link magento.stackexchange.com/a/108690/13859 and included the css file in blank/magento_theme/layout/default_head_blocks.xml file Commented Jul 6, 2017 at 12:18

1 Answer 1

1

I thing need to run this command.

php bin/magento setup:static-content:deploy
Sign up to request clarification or add additional context in comments.

Comments

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.