how to link external css file in magento static block admin ?
Hello @bharath553
You can try this for linking external css
<?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> <css src="css/mycustom.css" after="-" /> </head> </page>
Problem solved? Click Kudos & Accept as Solution!
Hi @bharath553
You want to link css from external link ? so css loaded on some another domain or server ?
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <css src="http://externalcss/external.css" src_type="url"/> </head> </page>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <script src="http://externaljs/external.js" src_type="url"/> </head> </page>
For more reference Check this
If issue solved,Click Kudos & Accept as Solution