• Resolved Derda

    (@derda)


    Hello!

    I have embedded wp with an iframe in the body tag of an existing page. The permalink to the first post is:

    https://websitename.com/blog/post-title/

    Using that link however I am presented exclusively with the content of the iframe — Without header or any other divs below and beside the iframe content.

    Is there a way I can fix this?

    Thank you very much

    Derda

Viewing 2 replies - 1 through 2 (of 2 total)
  • Iframes won’t respond to the browser address bar. The page they load is determined by the src attribute of the iframe tag.

    I doubt there’s a good way to do what you’re after. It might be theoretically possible to set up the iframe to load the correct post/URL based on the URL on the main website. For example, have https://websitename.com/blog/post-title/ open https://websitename.com/wordpress/post-title/ in the iframe, to sort of fake it, but the method to do that would depend entirely on the platform (CMS, language and server) that the main website is run on. But even then if you copied a link from the iframe, it’s still going to copy a link to (in my example): https://websitename.com/wordpress/post-title/

    A very common thing you’ll see is that companies will not even try to get their blog to match their main website completely, because of these difficulties. Ssee how https://blog.instagram.com doesn’t match https://blog.instagram.com, for example.

    I’d advise against trying to embed a blog as an iframe, and instead suggest letting it be its own website.

    Thread Starter Derda

    (@derda)

    Thank you Jacob for your valuable input. I think I shall heed your advice. So, back to the drawing board, get the header back up, etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalinks in embedded wp site’ is closed to new replies.