Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › how to i add inline javascript link into the editor
New Landing › How can we help? › Themeforest Theme Support › Dante › how to i add inline javascript link into the editor
- This topic has 15 replies, 3 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
June 4, 2014 at 7:33 am #80034
Hi, I am trying to add some javascript link on the contact page of dante theme. The link is to open my zopim chat program. I have add the code below to the parallax -> editor -> text. However my javascript is getting stripped. how to i add inline javascript link into the editor? thanks Michael
<a href="javascript:$zopim.livechat.window.show()"> Click here to chat with us! </a>
p>[one_third]</p><p>[sf_iconbox image="ss-chat" character="" type="boxed-three" title="Live chat" animation="pop-up" animation_delay="200"]<br /> Weekdays 9am to 6pm GMT<br /> <a href="javascript:$zopim.livechat.window.show()"> Click here to chat with us! </a><br /> </a>[/sf_iconbox]</p><p>[/one_third]<br /> [one_third]</p><p>[sf_iconbox image="ss-mail" character="" type="boxed-three" title="Email Us" animation="pop-up" animation_delay="600"]<br /> Email <a href="mailto:contact@[email protected]">contact@[email protected]</a><br /> Or fill out the form below.<br /> [/sf_iconbox]</p><p>[/one_third]<br /> [one_third_last]</p><p>[sf_iconbox image="ss-phone" character="" type="boxed-three" title="Call Us" animation="pop-up" animation_delay="1000"]<br /> Call +61 (03) 94668260<br /> Weekdays 9am to 6pm AEST<br /> [/sf_iconbox]</p><p>[/one_third_last]</p> box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.4) inset, 0px 2px 0px 0px rgba(255, 255, 255, 0.7) inset; padding-left: 36px; }
June 4, 2014 at 9:46 am #80046Hi,
I have corrected code so please use this code:
<a href="javascript:void(0)" onclick="javascript:$zopim.livechat.window.show()" >Click here to chat with us!</a>
Thanks 🙂
With Best Regards
Swift IdeasJune 4, 2014 at 11:37 am #80072Hi Mohammad,
I added your code but the the code is being stripped? thanks for your help.
is there some short code for inline code snippets?[inline] <a>Click here to chat with us!</a>[/inline]
<p>[one_third]</p><p>[sf_iconbox image="ss-chat" character="" type="boxed-three" title="Live chat" animation="pop-up" animation_delay="200"]<br /> Weekdays 9am to 6pm GMT<br /> [inline] <a>Click here to chat with us!</a>[/inline]<br /> [/sf_iconbox]</p><p>[/one_third]<br /> [one_third]</p><p>[sf_iconbox image="ss-mail" character="" type="boxed-three" title="Email Us" animation="pop-up" animation_delay="600"]<br /> Email <a href="mailto:contact@[email protected]">contact@[email protected]</a><br /> Or fill out the form below.<br /> [/sf_iconbox]</p><p>[/one_third]<br /> [one_third_last]</p><p>[sf_iconbox image="ss-phone" character="" type="boxed-three" title="Call Us" animation="pop-up" animation_delay="1000"]<br /> Call +61 (03) 94668260<br /> Weekdays 9am to 6pm AEST<br /> [/sf_iconbox]</p><p>[/one_third_last]</p>
June 4, 2014 at 11:55 am #80084Hi,
Please use this code :
<a href="#" class="chatWindow" >Click here to chat with us!</a>
And put this code at Admin -> Theme Options -> Custom JS ->
<script> $( document ).ready(function() { $( "a.chatWindow" ).click(function(e) { e.preventDefault(); $zopim.livechat.window.show(); }); console.log( "ready!" ); }); </script>
Thanks
January 18, 2016 at 3:30 am #241149I’ve added the javascript and HTML above, but the “click here to chat with us” link at the bottom of this page – http://bpadvisors.wpstagecoach.com/schedule-meeting/ is linked directly to #. I’m looking to open the Zopim chat window – . Any ideas on what I’m missing?
January 18, 2016 at 5:51 am #241165Hi,
@jbadrov – Please provide me specific page url and login detail to check and resolve the issue.
Thanks
MohammadJanuary 18, 2016 at 5:57 am #241168This reply has been marked as private.January 18, 2016 at 7:10 am #241180Hi,
Its working perfect to me. You can check the attachment.
Thanks
MohammadAttachments:
You must be logged in to view attached files.January 18, 2016 at 4:12 pm #241469The link “Click here to chat with us!” in the icon box at the bottom right just sends you to the top of the page. I’ve tried in three different browsers.
January 19, 2016 at 3:01 am #241650Hi,
Are you able to open the chat window? Just clear the cache of browser and check.
Thanks
MohammadJanuary 19, 2016 at 5:30 pm #241995Hi,
If I click on the link “Click here to chat with us!”, which is located in the icon box at the bottom right of this page – http://bpadvisors.wpstagecoach.com/schedule-meeting/, the chat window does not open. This is the icon box to the direct right of “Request webinar”.
The link currently sends you to the top of the page.
Any ideas?
Thanks.Walter
January 20, 2016 at 10:59 am #242196Hi,
Everything works perfect here. Please clear the cache of browser and check for issue.
Thanks
MohammadJanuary 21, 2016 at 11:42 pm #242693The text link “Click here to chat with us!” is pointing to “http://bpadvisors.wpstagecoach.com/schedule-meeting/#” – I’ve tried on multiple machines. See attached for the exact location of the link at the end of the red arrow. The Zopim help link at the very bottom works fine. I need to make this text link work the same way.
Attachments:
You must be logged in to view attached files.January 22, 2016 at 6:36 am #242724Hi,
I have managed to resolved it so please check after clear the cache of browser.
Thanks
MohammadJanuary 22, 2016 at 10:02 pm #243014That worked – thank you!
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.