Skip to content

How to Make a Link a Chat Start Button

To make any link (in the web version) a button to start a chat, you need to add two classes to this link - roxchat_button and roxchat_basic_button. Example:

<a class="roxchat_button roxchat_basic_button" href="#">Online Consultant</a>

If it is necessary to remove the main button, remove the button element.

Let's consider an example of the code for the demo account.

You need to remove the following code fragment:

<a class="roxchat_button" href="#" rel="roxchat">
<img src="https://demo.rox.chat/button.php" border="0" /></a>

And it should turn out like this:

<!-- roxchat button generation date: 2023-08-02 version: 2023.1 -->
<script type="text/javascript">

  roxchat = {
    accountName: "demo",
    domain: "demo.rox.chat"
  };
  (function () {
      var s = document.createElement("script");
      s.type = "text/javascript";
      s.src = "https://demo.rox.chat/js/button.js";
      document.getElementsByTagName("head")[0].appendChild(s);
  })();
</script>
<!-- /roxchat button -->

Warning!

Any changes in the button code, except those specified in the Rox.Chat documentation or made by the developer company's employees, are a violation of the product usage rules.