I had installed magento 2.0.2
and also override the templates
I am stuck on a point that where do i write my css
for my own styling.
How do i change the css
of existing template.
Asked
Active
Viewed 2,965 times
2

Qaisar Satti
- 2,742
- 2
- 18
- 36

atifaltaf
- 178
- 3
- 12
1 Answers
1
app/design/frontend/namespace/yourtheme/web/css/source/_theme.less
start with changing the header background
.page-header {
background-color: #000;
}
check this also

Community
- 1
- 1

Qaisar Satti
- 2,742
- 2
- 18
- 36
-
i did this but no change happens. i also deploy it but nothing changed. – atifaltaf Mar 08 '16 at 06:30
-
did you set your theme in admin panel? after droply you check the checks file in pub/static the content is deployed – Qaisar Satti Mar 08 '16 at 06:34
-
yes . and files are also deployed and i check code also – atifaltaf Mar 08 '16 at 06:48
-
are you ding this custom theme? did the content come from your theme? – Qaisar Satti Mar 08 '16 at 06:55
-
i have tried this also. To set the compilation mode, do the following: In the Magento Admin, navigate to Stores > Configuration > ADVANCED > Developer. In the Store View drop-down field, select Default Config. Under Front-end development workflow, in the Workflow type field, select the compilation mode. To save the settings, click Save Config. Make sure that the same compilation mode is set for each configuration scope. – atifaltaf Mar 08 '16 at 06:56
-
yes i have created my own new theme. parent is Magento/Luma – atifaltaf Mar 08 '16 at 06:57
-
check the source they are coming from your theme or other theme. – Qaisar Satti Mar 08 '16 at 07:00
-
styles-m.css styles-I.css and all other js css coming from my own theme from pub directory and styles.css is coming from 'pub/media' directory. – atifaltaf Mar 08 '16 at 07:04
-
check that file your code is there? and also check the class name is correct? – Qaisar Satti Mar 08 '16 at 07:06
-
its not helping. :( nothing changed in my theme. class name and directory everything is ok – atifaltaf Mar 08 '16 at 07:10
-
i put this css in pub/media/styles.css and its working. is it also right way? – atifaltaf Mar 08 '16 at 07:12
-
by doing this my back-end header also get black. :O – atifaltaf Mar 08 '16 at 07:13
-
don't change this it not concerned with design. – Qaisar Satti Mar 08 '16 at 07:16
-
do you have any guide or tutorial for this . i have a tutorial which i told you that is also not working. what should i do now. – atifaltaf Mar 08 '16 at 07:18
-
there is no help yet available you can get help from here http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/theme-create.html – Qaisar Satti Mar 08 '16 at 07:20