Tagged: x
-
AuthorPosts
-
February 11, 2017 at 10:27 am #1367056
KierynMParticipantHi guys,
I am trying to install the live chat plugin called Tidio. It is asking me to put the following code into the header file of my website just before the </head>:
<script src=”//code.tidio.co/lixisifwwyngqnqmyoj1qvgrmh4brp3x.js”></script>
I can find the file but since I am not on child theme there is no </head>? What should I do?
thanks a lot,
KierynFebruary 11, 2017 at 8:54 pm #1367495
RadModeratorHi there,
Thanks for posting in.
It’s very important to have a child theme if you’re planning to add customization such as that. Else, every change you made will be overwritten by updates.
And implementing this to child theme’s functions.php should do it
add_action('wp_head', 'chat_embed', 9999 ); function chat_embed() { ?><script src="//code.tidio.co/lixisifwwyngqnqmyoj1qvgrmh4brp3x.js"></script><?php }Thanks.
February 12, 2017 at 7:54 am #1367835
KierynMParticipantHi Rad,
I never put child theme on my website and now it is completely developed and live. How would I go about changing my website to child theme without losing anything? Could you take me through the steps please?
February 12, 2017 at 8:14 am #1367846
ThaiModeratorHi There,
Please take a look at this article: https://community.theme.co/kb/how-to-setup-child-themes/.
Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1367056 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
