Help > Forum > Website Integration > Turning off embedding for mobile devices

Turning off embedding for mobile devices

You can follow the instructions below to turn off embedding on mobile devices if your website is not responsive (mobile-friendly), you want your forum to appear in the full browser window on mobile devices instead of embedded within your website, or if you are facing issues with our forum embed code on mobile devices. On mobile devices (not including tablets), your forum will load full-sized within the browser instead of within your embed code area. Before turning off embedding for mobile devices, we encourage you to contact us first, since we may be able to fix whatever problems you are facing.

  1. Log in to your Website Toolbox account.
  2. Click the Appearance link.
  3. Select the HTML link from the Appearance menu.
  4. Paste the following code in the Forum Head Tag HTML Code text box:
    if((window.matchMedia("(max-device-width: 767px)").matches &&
    window.matchMedia("(orientation: landscape)").matches) ||
        (window.matchMedia("(max-device-width: 480px)").matches &&
    window.matchMedia("(orientation: portrait)").matches)) {
        wtbx.preventEmbedRedirect = 1;
        if (top.location != location) {
            top.location.href = document.location.href;
  5. Save your changes.

On mobile devices, the above code will cause the forum to break out of the embedded area and reload itself in the full browser window.

If you still need help, please contact us.