Embed Setup

Basic setup for embedding TalkShopLive in WordPress.

How to Embed TalkShopLive on Your WordPress Site

Method 1: Using the WordPress Block Editor

  1. Go to the editor of the page or post where you want to embed TalkShopLive.
  2. Add a Custom HTML block:
    1. Click the "+" button to add a new block.
    2. Search for "Custom HTML" and select it.
The TalkShopLive embed in desktop layout.
  1. Insert the embed script and code:
  2. Paste the following code into the Custom HTML block. Make sure to update the data-modus attribute with the correct channel or show ID.

For embedding a channel:

<script id="tsl-embed-script" async crossorigin="anonymous" src="https://embed.talkshop.live/embed.js"></script>

<div class="tsl-container" data-type="channel" data-modus="abc123"></div>

For embedding a specific show:

<script id="tsl-embed-script" async crossorigin="anonymous" src="https://embed.talkshop.live/embed.js"></script>

<div class="tsl-container" data-type="show" data-modus="ABCD_XYZ1"></div>
The TalkShopLive embed in desktop layout.
  1. Publish or update your page/post and preview it to check that the TalkShopLive embed is working properly.
The TalkShopLive embed in desktop layout.

Additional Customizations

If you want to make additional adjustments to the embed, such as setting a fixed height or embedding multiple shows on the same page, you can add optional attributes to the tsl-container div.

Important Notes:

  • Ensure you include the script only once per page.
  • Adjust the data-modus value based on the channel or show you want to embed.

Method 2: Using the Classic Editor

  1. Open the Classic Editor for the page or post where you want to add the embed.
  2. Switch to Text (HTML) mode:
    1. In the Classic Editor, select the Text tab to switch to HTML view.
The TalkShopLive embed in desktop layout.
  1. Insert the embed script and code:
  2. Paste the following code where you want the TalkShopLive embed to appear.
  3. For embedding a channel:
<!-- wp:html -->
<script id="tsl-embed-script" async crossorigin="anonymous" src="https://embed.talkshop.live/embed.js"></script>

<div class="tsl-container" data-type="channel" data-modus="abc123"></div>
<!-- /wp:html -->
  1. For embedding a specific show:
<!-- wp:html -->
<script id="tsl-embed-script" async crossorigin="anonymous" src="https://embed.talkshop.live/embed.js"></script>

<div class="tsl-container" data-type="show" data-modus="ABCD_XYZ1"></div>
<!-- /wp:html -->
  1. Save or publish your page/post and then preview it to ensure the embed is functioning correctly.

How to Remove the TalkShopLive Embed from Your WordPress Site

Method 1: Using the WordPress Block Editor

  1. Access the editor for the page or post where you added the embed.

  2. Select the Custom HTML block where you inserted the script and the embed div.

  3. Remove the block:

    1. Click on the block to select it.
    2. In the block's toolbar (three dots in the upper-right corner of the block), click on "Delete".
The TalkShopLive embed in desktop layout.
  1. Save and update the page or post to apply the changes.

Method 2: Using the Classic WordPress Editor

  1. Access the Classic Editor for the page or post where you added the embed.
  2. Switch to the HTML view:
    1. Click the Text tab to switch to the HTML view.
      Find the embed code:
  3. Look for the <script> and <div> that you added for the TalkShopLive embed
  4. Delete the embed code including <!-- wp:html -->tag
  5. Save your changes and update the page or post to reflect the removal.

If any issues, please contact [email protected] with the ticket Wordpress-Embed support.