0

This is my default_head_blocks.xml file code

<css src="css/source/_style-l.css" /> 
 <css src="css/source/styles-m.css" />
 <css src="css/source/styles-l.css" media="screen and (min-width: 768px)"/>
 <css src="css/source/print.css" media="print" />
</head>

Is an application set to developer mode and all the CSS file incorrect location?

Teja Bhagavan Kollepara
3,8275 gold badges33 silver badges69 bronze badges
asked Aug 9, 2016 at 13:58
1
  • Are you inheriting from Blank or Luma? Commented Aug 9, 2016 at 14:02

3 Answers 3

0

Use This: (Change the css path as required)

<action method="addCss" ifconfig="porto_settings/general/rtl" condition="0"><stylesheet>css/local.css</stylesheet></action>

answered Aug 10, 2016 at 5:29
1
  • kindly check your answer may be u have given answer for M1 not M2 check it once Commented May 28, 2018 at 5:21
0

First 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)

app/design/frontend/vendor_name/theme_name
answered Aug 10, 2016 at 13:16
0

You need to refer below link.

http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-static-view.html

also you need to run command for deploy, you can use anyone command

php bin/magento setup:static-content:deploy
or
php bin/magento dev:source-theme:deploy
answered Aug 10, 2016 at 13:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.