magento 2 element ‘remove’, attribute ‘media’: The attribute ‘media’ is not allowed.


Magento 2 is strict about the XML configuration.

The code  <remove src="css/print.css" media="print" />  in  magento2-theme-performance/Magento_Theme/layout/default_head_blocks.xml Generates this error.

If you remove the ‘media’ attribute of print.css this issue is resolved.

Leave a Reply

Your email address will not be published. Required fields are marked *