Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1198187
    piexec
    Participant

    I added a link to an image that used to open the Olark Chat box.

    For some reason it just stopped working.

    The code was:

    javascript:void(0);” onclick=”olark(‘api.box.expand’)

    Page is: http://piexec.com/contact

    Did something change that made the script stop working in some of the latest updates to the theme?

    Thanks in advance!

    #1198236
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! That is because the “Onclick” property were not added. You cannot just simply add this in the href of the image. For much better performance, you should be adding a raw content element and insert this code:

    
    <a class="x-img x-img-link x-img-none" style="float: left;margin: auto;" href="javascript:void(0);" onclick="olark('api.box.expand')"><img src="http://i1.wp.com/piexec.com/wp-content/uploads/2016/06/chat_icon.png?w=1170" width="157" height="132"></a>

    We would loved to know if this has work for you. Thank you.

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