I try to add a css file to a new layout for a cms page (magento 2): src/app/design/frontend/NAME/default/Magento_Theme/page_layout/lpmdd-without-header.xml
<?xml version="1.0" ?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
<head>
<css src="css/lpmdd/lpmdd.css" />
</head>
<update handle="1column"/>
<referenceContainer name="header.container" remove="true"/>
<referenceContainer name="breadcrumbs" remove="true" />
<referenceContainer name="page-bottom" remove="true" />
<referenceContainer name="reassurance-container" remove="true"/>
</layout>
I have created lpmdd.less located in src/app/design/frontend/NAME/default/Magento_Theme/web/css/lpmdd/lpmdd.less
I try to clean cache and running php bin/magento setup:static-content:deploy -f
And I try to change
<css src="Magento_Theme::css/lpmdd/lpmdd.css" />
but it doesn't work, do you have any idea?
Thanks.