Jump to content

Blog not showing correctly in iFrame

Recommended Posts

Posted

Hello, 

We have a blog page on our square space site which we also use on a different site by embedding the page in an iFrame. Recently the blog content is no longer appearing in the iframe.

The Blog can be seen here: https://panda-trout-wrmk.squarespace.com/blog

However when its embedded in an iframe, the content doesn't show correctly:

https://jsfiddle.net/14dy6Lv2/

When I manually add a src attribute to the images it shows correctly, I suspect maybe the image loader isn't correctly adding the src attribute when its required?

How can I get the content to load correctly when embedded within an iframe?

 

thanks!

 

  • Replies 1
  • Views 346
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted
3 hours ago, mattb01 said:

When [the Squarespace blog page is] embedded in an iframe, the content doesn't show correctly

This is normal.

The Squarespace scripts are being blocked by a 'same-origin' security policy. This is correct and will prevent much of the page content from being created within the iFrame.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.