Issue embedding a Google Doc

  • Unknown's avatar

    Hello!

    I added several google documents to my site without any problems. However, a while ago they stopped working, and since then I haven’t been able to fix it.

    I insert a code like this: https://docs.google.com/forms/d/e/EXAMPLE/viewform?embedded=true

    With the preview option in the HTML block it displays correctly.

    However, when saving, the code becomes:

    [googleapps domain="docs" dir="forms/d/e/EXAMPLE/viewform" query="embedded=true" width="100%" height="650" /]

    And when I load the page it prints this piece of code and not the document itself.

    I have seen several discussions about this, but I have not been able to solve my problem.

    I have to clarify that I am not an expert in WordPress and that my site is only to see the results of an informal competition with my friends, so I use the free version without any plugin.

    Thank you very much in advance for your answers!

  • Unknown's avatar

    Hi there!

    The embed code changing to shortcode is expected. However, it should still display the embedded file correctly. Could you please share the link to the page/post where we can see the issue? It’s okay if the page/post is in draft. We can still see it on our end to check what’s going on.

    Thanks!

  • Unknown's avatar

    Hi!

    https://xplanef1.wordpress.com/ is the page. I’ve tried many things but the issue is still there.

    Thanks!

  • Unknown's avatar

    Thanks for that! Looking at the site editor for that page, I think the issue might be the HTML block has brackets – [ ] – and not code, so it’s rendering as plain text.

    I pulled up Google’s instructions on how to embed a form (https://support.google.com/docs/answer/2839588?hl=en#zippy=%2Cembed-a-form-on-a-website-or-blog) and you should have some code that looks more like this with an iframe:

    Could you go into your form, get that iframe code, and replace what you have in the HTML block with that code and see if that fixes things? Typically iframe code is not allowed on Free sites, but with our Google Docs integration, that code should work without any issues.

    If you still have trouble, please let us know!

  • Unknown's avatar

    Thank you for your answer.

    Yes, I have done that but the code is converted automatically (which I think is normal). In fact in the preview of the HTML block you can see the documents correctly.

    It was working until a while ago. I don’t know if it could be a bug specifically on my site.

    Thanks!

  • Hey @victorguada97,

    Thanks for giving that a try. It looks like this is a bug impacting page templates, including your homepage. I have investigated this and submitted a bug report to our developer team. In the meantime, you can add the shortcode to another page on your site to embed the form as a workaround.

    Hope this helps!

  • The topic ‘Issue embedding a Google Doc’ is closed to new replies.