• I need to make a WordPress site ’embedable’ so that other sites, or in this case a progressive web app, can embed the WP site. I’m not trying to embed content in a WP site.

    I’ve searched but there isn’t a lot of information how to make a WP site embedable, although one article I read seemed to be saying that functionality was now in WP core. But the progressive web app platform we are using says that our site is not embedable.

    Can anyone tell me how to make a WP site embedable?

Viewing 9 replies - 1 through 9 (of 9 total)
  • “Embeddable” is a very subjective term. It all depends on what you want to embed (sections, articles, entire pages, etc), and what it’s embedding into (another web page, mobile app, desktop app, API system, etc).

    Do you know what the platform actually requires for something to be embedded?

    Thread Starter DonnaMiller

    (@donnamiller)

    I’m not sure what the platform actually requires. I have asked them how can I make a WordPress site embedable, but they were very vague about their requirements and said I should contact WordPress. I’ll ask them again more specifically based on your question, thank you @catacaustic.

    We are using the Pretty Link plugin to redirect to other web sites and resources (just as PDFs). So it’s the entire page, or maybe site that needs to be embedded. The platform is AppInstitute, and we are building a progressive web app which it’s embedding into.

    Seems to me there’s 2 ways you can do this – either with an iframe (or equivalent) to embed the site into a web view, or use WordPress’ REST API to pull the data in from the database.

    Thread Starter DonnaMiller

    (@donnamiller)

    Thank you @petervandoorn. I’ve just heard back from the app builder company and it is the iframe that they use to embed.

    So… how do I make a WordPress site allow embedding by iframe so that my site can be embedded?

    • This reply was modified 7 years, 2 months ago by DonnaMiller.
    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Use a theme that fits the style you want it to be, or make a custom theme.

    There’s no special trick to being “embedded”. An iframe is just a smaller window in a page that shows another page. You can put a WordPress site’s output inside an iframe with no issues, nothing prevents that. But if you want it to look a certain way, then the theme does that.

    Thread Starter DonnaMiller

    (@donnamiller)

    Hi @otto42, well that’s what I thought, that there would be nothing to prevent the site being embedded into an iFrame. But they are saying that it’s not embedable. We already have a plain theme, and it’s not a theme or styling issue. They are saying that they can’t embed it. I’ll go back to them with this information, that there is nothing preventing embedding, and ask them what the problem is.

    Thanks

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    The Login and Admin level pages in WordPress are not embeddable by default, because WordPress sends the X-Frame-Options: SAMEORIGIN header specifically to prevent that type of thing. This prevents clickjacking attacks.

    However, it does not typically send this header for the “front” view of the site, so that should be embeddable just fine, unless you have something else setting an X-Frame-Options header.

    Thread Starter DonnaMiller

    (@donnamiller)

    I have not set anything to prevent the front view from being embedded. I just changed to a default WP theme to test if maybe the theme we were using was doing that. But it’s the same result.

    You say you can’t embed your site, but what exactly do you mean by that?

    Is it a case that the iframe is just blank, or are you seeing something but it’s not displaying as you would want it to?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How do I make WordPress ’embedable’?’ is closed to new replies.