Adding a chat link to your website

Being able to make any image or link bring up the Olark chat box lets you highlight your live chat service anywhere on your site. As with all the examples below, we recommend enabling Invisible Olark so that your chat box is hidden until someone clicks the link.

Note: You need to be on a paid account in order to enable Invisible Olark.

If you send a message to your visitor, either as an operator or using the Greeter or Targeted Chat rules, the chat box will automatically appear and expand itself.

You can make the chat box pop out when a link is clicked in any of the examples below by replacing olark('api.box.expand') with olark('api.box.popout').

Click-to-chat link

This click-to-chat link makes use of the Olark Javascript API. You can modify or hide the link itself when your operators are away by using the api.chat.onOperatorsAway call.

  1. Copy the following HTML and CSS code.

  2. Paste the code in to your website source, anywhere between the two body tags.
  3. Save your page and reload. It should look something like this example.

Click-to-chat image



  1. Copy the following HTML and CSS code.

  2. Place this code where you want your image to appear. The links to the images should be after online= and offline= in the src attribute.
  3. Save your page and reload. It should look something like this example.

Chat side tab

You can add a click-to-chat tab to the side of your page. Remember, you can use your own custom image or change the position by modifying this code.

  1. Copy the following HTML and CSS code.

  2. Paste the code in to your website source, anywhere between the two body tags.
  3. Save your page and reload. It should look something like this example.

Chat side tab (CSS only)

If you'd rather use a solution that doesn't require any images, you can use CSS to position a click-to-chat tab on the side of your page.

Note: This method uses CSS3 which may not work on older browsers.

  1. Copy the following HTML and CSS code.

  2. Paste the code in to your website source, anywhere between the two body tags.
  3. Save your page and reload. It should look something like this example.
Last Updated: May 13, 2013
Customer service software powered by Desk.com.