Tagged: cornerstone
-
AuthorPosts
-
March 23, 2017 at 6:05 am #1417463
SandieParticipantHi,
I need some help to insert a code snippet on one of my pages.
https://www.youpheal.com/boka-kinesiologi-mora-falun/
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
/SandraMarch 23, 2017 at 6:31 am #1417498
DarshanaModeratorHi 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.
March 23, 2017 at 10:08 am #1417754
SandieParticipantHi,
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
/SandraMarch 23, 2017 at 11:36 am #1417884
JadeModeratorHi 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 credentialsAnd 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.
March 28, 2017 at 12:06 pm #1423197
SandieParticipantThis reply has been marked as private.March 28, 2017 at 6:44 pm #1423574
DarshanaModeratorThis reply has been marked as private.April 3, 2017 at 1:03 pm #1428208
SandieParticipantThis reply has been marked as private.April 3, 2017 at 11:51 pm #1428501
ChristopherModeratorHi 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.
April 11, 2017 at 3:32 am #1432226
SandieParticipantThank you so much Christopher for the help with the script. It works like a charm! 🙂
Take care!
Kind Regards
/SandraApril 17, 2017 at 7:48 am #1441231
JoaoModeratorGlad to hear it!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1417463 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
