0

Magento provides a way to include external js or css using following method.

<css src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css" src_type="url" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js" src_type="url" />

Reference

But i can't find any references about how to stop/remove them from specific pages layouts.

Need help with this.

1 Answer 1

0

You can use <remove> tag in your specific layout file to remove external css/js .

You can as below in your layout file.

<head>
   <remove src="your-css-or-js-path"/>
</head>
2
  • Yes i already tried this way but unfortunately didn't work. Nov 25, 2022 at 7:31
  • did u get Ans for this
    – kanidhaya
    Sep 19, 2023 at 5:00

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.