Twitch Chat Embed does not work on Wix website

I am trying to embed my channels Chat into a wix website. I have tried using the https embed but that never loaded. I have used the suggested iframe code from your dev site and i can get a white square to load but no messages load, and i cannot send messages.

iframe code

<iframe frameborder="0"
        scrolling="no"
        id="mahersh117"
        src="https://twitch.tv/embed/mahersh117/chat"
        height="500"
        width="500">
</iframe>

this code loads a white square but nothing else. Any help would be awesome in getting this to work. I am haveing the same issue when I try to embed both the stream and chat in the same iframe

iframe code for stream and chat in one window

<html>
  <body>
    <!-- Add a placeholder for the Twitch embed -->
    <div id="twitch-embed"></div>

    <!-- Load the Twitch embed script -->
    <script src="https://embed.twitch.tv/embed/v1.js"></script>

    <!-- Create a Twitch.Embed object that will render within the "twitch-embed" root element. -->
    <script type="text/javascript">
      new Twitch.Embed("twitch-embed", {
        width: 854,
        height: 480,
        channel: "mahersh117"
      });
    </script>
  </body>
</html>

any help you guys can offer would be great

You didn’t provide a

<div id="twitch-embed"></div>

For the Embed code to target

where would i add it to the code and what information do i need to change. I am new to HTML so i really thank you for your help this is the code that i use for the chat stand alone. UPDATE: So the code isn’t showing up in the post. I took a snip and posted that snip here. Thanks Again

iframe%20code%20for%20chat%20embed

Fixed your formatting on the first post then.

The forum has a preview to the right that lets you cross check what you post

Use

image

To indent your code.

It might be an issue with Wix as people have reported issues with Wix before so you might want to avoid Wix.

As you can see here:

https://twitch.extensions.barrycarlyon.co.uk/temp/test_23468.html

The code works fine on a “normal” website so the issue would seem to lie with Wix.

Thank you so much for your help. I really appreciate it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.