cancel
Showing results for 
Search instead for 
Did you mean: 

I want toa add a script of ;live chat module in my magento website. how to do it?

I want toa add a script of ;live chat module in my magento website. how to do it?

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?

1 REPLY 1

Re: I want toa add a script of ;live chat module in my magento website. how to do it?

@misbahayaz9439 

 

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!

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.