New Landing How can we help? Themeforest Theme Support Dante how to i add inline javascript link into the editor

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Dante
  • #80034
    mrwerner
    Member
    Post count: 1

    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;
    }
    #80046
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    #80072
    mrwerner
    Member
    Post count: 1

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

    #80084
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    #241149
    jbadrov
    Member
    Post count: 43

    I’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?

    #241165
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @jbadrov
    – Please provide me specific page url and login detail to check and resolve the issue.
    Thanks
    Mohammad

    #241168
    jbadrov
    Member
    Post count: 43
    This reply has been marked as private.
    #241180
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its working perfect to me. You can check the attachment.
    Thanks
    Mohammad

    Attachments:
    You must be logged in to view attached files.
    #241469
    jbadrov
    Member
    Post count: 43

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

    #241650
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Are you able to open the chat window? Just clear the cache of browser and check.
    Thanks
    Mohammad

    #241995
    jbadrov
    Member
    Post count: 43

    Hi,

    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

    #242196
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Everything works perfect here. Please clear the cache of browser and check for issue.
    Thanks
    Mohammad

    #242693
    jbadrov
    Member
    Post count: 43

    The text link “Click here to chat with us!” is pointing to “http://bpadvisors.wpstagecoach.com/schedule-meeting/#&#8221; – 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.
    #242724
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolved it so please check after clear the cache of browser.
    Thanks
    Mohammad

    #243014
    jbadrov
    Member
    Post count: 43

    That worked – thank you!

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register