cancel
Showing results for 
Search instead for 
Did you mean: 

Help adding custom CSS

Help adding custom CSS

Hello 

I need to add a custom CSS file so i can apply style for tables that i use in magento store. 

I have created custom theme path .. added default_head_blocks.xml with path to the CSS file ..and create the CSS file in css folder . I can see my new css loading into the head but styling is not applied. error in developer console is as follow :
because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

not sure why its treating it as text/plain and not text/css as it is been noted in xml file . 

any suggestion would be appreciated. 

Thanks. 

1 REPLY 1

Re: Help adding custom CSS

I got it fixed .looking at the errors , noticed 404 error .. then i moved the file into 

vendor/magento/theme-frontend-luma /.../css folder and worked. 

i guess did not do a good job at template override ..