I want to override xml file of 3rd party extension in my custom theme in magento 2.1.13 . Till now i did following steps:-

1) path of the xml which i want to override is app/code/Namespace/ModuleName/view/frontend/layout/layoutfile.xml 2) i had changed layout file and uploaded at app/design/frontend/packageName/themename/Namespace_ModuleName/layout/layoutfile.xml

after step 2. i had deleted pub/static/* and deployed static content again using php bin/magento setup:static-content:deploy . Then i cleared and flushed cache. still my css has not been changed. please help me

  • do you want add CSS in above path ? Could you please share your xml code Commented May 25, 2018 at 10:30
  • no. i want to remove css file which has been included in the xml file Commented May 25, 2018 at 10:31
  • Could you please share your xml code Commented May 25, 2018 at 10:32
  • what i did is copyied complete xml file from module and removed css file name thats it Commented May 25, 2018 at 10:43

1 Answer 1


Try below code to remove CSS :

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <remove src="name.css"/>

No need to copying full XML just put what you want to remove.

  • Welcome anytime :) Commented May 25, 2018 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.