cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom css to new theme (based on blank)

Adding custom css to new theme (based on blank)

Hi 

We are new to Magento2 and have a question.

We have created a new theme based on the blank theme and deployed it and everything seems to have worked fine.

We now want to add our own custom css to the new theme.

We have added our css file here

public_html/testmagento/app/design/frontend/magento/perryworld/web/css

 

And our default_head_blocks.xml is here

public_html/testmagento/app/design/frontend/magento/perryworld/layout

 

The contents of the file are :

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/styles-m.css" />
<css src="css/styles-l.css" media="screen and (min-width: 768px)"/>
<css src="css/print.css" media="print" />
<css src="css/customcss.css" />
</head>
</page>

 

It doesn't seem to be recognising the default_head_blocks.xml as when we look at the source the .css files are not included in the source

 

Our site is at testmagento.perryworld.co.uk

 

Any help would really be appreciated as we are not sure what we are missing

 

Many thanks

Rich