Hello, Can you advise if Advanced iframe can be used to add a php based page into an iframe?
I have tried it but I can't see a way to get it to work. Are there any specific instructions regards this? Can it be dependent on the version of php which is bein used? Its for a wordpress site.
Thanks for any helpful advice.
I do not get your problem. Millions of web pages are php based. you simply include the url you have in the browser to the iframe.
Or do I miss something here?
Best regards, Michael
Hello Michael, Thanks for taking the time to respond. I thought as you and have of course used iFrames on many sites over the years to incorporate other content into site pages. Thats why I was a bit perplexed when I couldn't see why it wasn't working for me now. The page is a test one:
https://thegorbals.co.uk/wordpresstest/present/the-gorbals-calendar/
There are two instances on this page where I have inserted a php page: https://thegorbals.co.uk/thegorbalscalendar/month.php
Its a lot of work to try to insert the header including the menu into the actual calendar code, plus I would need to update it separately from the main site. So my preference was to incorporate the calendar page in to the site using the iFrame.
Hope that this helps clarify where I am with this issue. I am unsure if its a php issue.
Please get back to me with any suggestions.
Hi,
can you please share your shortcode. What I see for now is that you enable auto resize but you have not used
https://thegorbals.co.uk/thegorbalscalendar like you wrote but https://www.thegorbals.co.uk/thegorbalscalendar/
one is with and one without www
If you use with then this is a different domain for the browser and no auto height is possible. Therefore you get an error. See the browser console for details -> F12
Best regards, Michael
Hullo again Michael,
Thanks again for your time.
Ok so I corrected the links to
[iframe src="https://thegorbals.co.uk/thegorbalscalendar/" width="100%" height="1000px"]
Now once the page with the iframe is loaded then it redirects to the actual page which is to be contained in the iframe rather than containing it in the iframe on the page I am wanting it on.
Even more uncontrolled is that when I add the above link into the wordpress page and update it then the redirection to the calendar page occurs. It then becomes a cycle of the me being redirected to the calendar page and then trying to go back and stop the page loading at the worpress page where the iframe is loaded.
So theres a lot of redirection going on but no continued page in an iframe on the page.
Its a bit of a strange one. As I said I've never had any issue with using iFrames before.
I had removed the iframe from the page but have reinserted it if you had the chance to have a look.
Any further thoughts would be much appreciated.