Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1367056
    KierynM
    Participant

    Hi 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,
    Kieryn

    #1367495
    Rad
    Moderator

    Hi 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.

    #1367835
    KierynM
    Participant

    Hi 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?

    #1367846
    Thai
    Moderator

    Hi There,

    Please take a look at this article: https://community.theme.co/kb/how-to-setup-child-themes/.

    Hope it helps 🙂

  • <script> jQuery(function($){ $("#no-reply-1367056 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>