- This topic has 1 reply, 2 voices, and was last updated 7 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › Travel Eye › Adding Live Chat Plugin to the theme
Good day,
I would like to add a live chat widget to the site but every time i do that, it changes the way the site looks..
here is the code for the live chat, which i am to add on every page:
<!–Start of Tawk.to Script–>
<script type=”text/javascript”>
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement(“script”),s0=document.getElementsByTagName(“script”)[0];
s1.async=true;
s1.src=’https://embed.tawk.to/5996ad8cdbb01a218b4dcf9b/default’;
s1.charset=’UTF-8′;
s1.setAttribute(‘crossorigin’,’*’);
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!–End of Tawk.to Script–>
Please help, Thank you…
Hello @spdes,
When we checked the theme locally by placing the code for live chat it is working absolutely fine as you can see in below screen shot.
https://image.prntscr.com/image/XfrYm8iwRBSNff4C9xtTBg.png
So to make the chat work in your theme first of all create the child theme .
Child theme references :
https://codex.wordpress.org/Child_Themes
You can also create the child theme using the plugin given below:
https://wordpress.org/plugins/wp-child-theme-generator/
After creating the child theme in your child theme functions.php file paste below given code.
https://gist.github.com/anonymous/116919fd6eecce3406e7f4c9f2143df9
Hope this helps.
Best Regards!!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |