We have a shortcode that can be used to embed chatroom into a WordPress page. Please paste this code on the page where you want to add the chatroom.
The following code can be used to add embed chatroom in a WordPress post/page:
<div class="iflychat-embed" data-room-id="0" data-height="600px" data-width="100%"></div>
It has three attributes:
- data-room-id - room id (always a number). New chat room can be created via our iFlyChat Dashboard or REST API.
- data-height - This attribute decides the height of the embedded chatroom.
- data-width - This attribute decides the width of the embedded chatroom
We provide one chat room (id = 0) by default with every API key. You may create more chat rooms by going to the App Dashboard.