For the complete documentation index, see llms.txt. This page is also available as Markdown.

Troubleshoot IFrames

Fix an embedded Action Page that isn't displaying correctly by testing its iFrame embed code on a blank HTML page and adjusting the iFrame height and width.

If an embedded Action Page isn't displaying correctly on your website, test the iFrame embed code on a blank HTML page. This helps you tell whether the issue comes from the embed code or from your website. This article covers how to test the embed code and how to adjust the iFrame's size and scrolling.

Before You Begin

Copy your page's embed code. In the Page Builder, click Share, then click Embed on your Site. See Share An Action Page.

Test Your Embed Code

To test your embed code:

  1. Copy the HTML template below.

  2. Paste your embed code between the comment markers.

  3. Save the file with a .html extension.

  4. Open the file in your web browser.

<!DOCTYPE html>
<html lang="en-US">
<head>
  <title>Anedot iFrame demo</title>
</head>
<body>
  <main>
    <div>
      <!-- iFrame Embed code -->
      <!-- Paste embed code between these comments -->
    </div>
    <footer>&copy; Anedot</footer>
  </main>
</body>
</html>

If the page displays correctly in the test file, the issue is likely with your website's code or settings. Contact your website platform's support team for help.

Adjust IFrame Size and Scrolling

To remove unwanted scrolling, set specific height and width values on your iFrame.

  • Increase the height if content is cut off.

  • Use width="100%" so the page fits the width of its container.

  • Test your changes on both desktop and mobile devices.

Was this helpful?