Skip to content

magento man

How to remove Default style-m.css and styles-l.css Stylesheet, Add Back One Page Only

I have a Magento 2 client with a strange theme that is using scss and to make a long story short I need to remove the styles-l and styles-m css/styles from vendor/magento/theme-frontend-blank/Magento_Theme/layout/default_head_blocks.xml like this: <remove src=”css/styles-m.css”/> <remove src=”css/styles-l.css”/> That works… Read More »How to remove Default style-m.css and styles-l.css Stylesheet, Add Back One Page Only

Magento 2: Including External JS – Uncaught Error: Mismatched anonymous define() module

Trying to include an external JS file on a specific page. Currently using the following in my layout: <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <head> <script src=”https://js.braintreegateway.com/web/dropin/1.14.1/js/dropin.min.js” src_type=”url”/> </head> </page> I see the script included in the head of my page… Read More »Magento 2: Including External JS – Uncaught Error: Mismatched anonymous define() module