Navigation

This content is old and no longer supported. You may use at your own risk, but no official support will be provided for anything listed here. If you are a Themeco customer, we invite you to check out our new community and forums, Apex.

Tagged: 

  • Author
    Posts
  • #1417463

    Sandie
    Participant

    Hi,

    I need some help to insert a code snippet on one of my pages.

    https://www.youpheal.com/boka-kinesiologi-mora-falun/

    http://prntscr.com/enghst

    The code snippet I want to add to integrate a booking function on my page is:

    <script>
    (function(c,l,i,e,n,t,o){if(c.cbk){return;}c.cbk=function(){
    c.cbk.p.push(arguments);};c.cbk.p=[];e=l.createElement(“script”);e.async=1;
    e.src=i;l.head.appendChild(e);n=l.createElement(“div”);n.id=”cliento-booking”;
    t=l.getElementsByTagName(“script”);o=t[t.length-1];o.parentNode.insertBefore(n,o);
    })(window,document,”https://cliento.com/bookingapp/javascripts/cliento.js”);
    cbk(“id”, “zHR1VkO1y3b0vtcR2OUvH”);
    </script>

    Do I add element “Code Snippet” or “Raw Content” or some other element to get this to work?

    I have added Code Snippet now but it doesn’t work, what am I missing?

    Thanks!

    Best Regards
    /Sandra

    #1417498

    Darshana
    Moderator

    Hi Sandra,

    Thanks for writing in! You can use a raw content element to place your JavaScript.

    Or else follow this detailed guide here (https://community.theme.co/forums/topic/adding-external-javascript-to-a-single-page/#post-169864).

    Hope that helps.

    #1417754

    Sandie
    Participant

    Hi,

    I tried adding it as a Raw Content as well but with no luck.

    Do you have a better description how to do it, as I couldn’t figure out the guide above.

    Thanks!

    Best Regards
    /Sandra

    #1417884

    Jade
    Moderator

    Hi Sandra,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    And let us know which page you want the code to be present.

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1423197

    Sandie
    Participant
    This reply has been marked as private.
    #1423574

    Darshana
    Moderator
    This reply has been marked as private.
    #1428208

    Sandie
    Participant
    This reply has been marked as private.
    #1428501

    Christopher
    Moderator

    Hi there,

    Please check your page, I fixed it for you. I added script to raw content element and insert CSS under cornerstone settings tab.

    Hope it helps.

    #1432226

    Sandie
    Participant

    Thank you so much Christopher for the help with the script. It works like a charm! 🙂

    Take care!

    Kind Regards
    /Sandra

    #1441231

    Joao
    Moderator

    Glad to hear it!

Join Apex

This content is old and no longer supported. We invite you to check out our new community and forums, Apex.

Join Apex