I want to add this script to my magento website"
<link rel="stylesheet" href="https://edu-kaspar.odoo.com/im_livechat/external_lib.css"/>
<script type="text/javascript" src="https://edu-kaspar.odoo.com/im_livechat/external_lib.js"></script>
<script type="text/javascript" src="https://edu-kaspar.odoo.com/im_livechat/loader/1"></script>"
please guide me how to do it?
Hey,
Add/load external js/css using layout(xml) file like this : <script src="https://js.demo.com/v3/" src_type="url"/> <css src="https://css.demo.com/custom.css" src_type="url"/> For example : anyLayoutFile.xml
?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.demo.com/v3/" src_type="url"/> <css src="https://css.demo.com/custom.css" src_type="url"/> </head> </page>
Thank You!