How do I show a html page in an iframe

mickeHyman
64 Posts
mickeHyman posted this 20 March 2025
Ask a Question

Hi,
I have a page on my site where I want to show a html page with an interactive map inside an iframe on a page.
I have tried different things such as allowing html files in the media settings but it doesn't show.
Any suggestions are highly appreciated.
URL to my site is: https://www.gagneffiske.se/index.php/kartor-och-fiskevatten/interaktiv-fiskekarta

BR
Micke

Last edited 20 March 2025 by mickeHyman

Vote to pay developers attention to this features or issue.
12 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 20 March 2025

Hi, Micke,

Could you please paste the code to a TXT file and attach it here? We will check it on our end.
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

mickeHyman
64 Posts
mickeHyman posted this 20 March 2025

Hi Paul,

Certainly, here it is attached as a text file.

Best regards
Micke

Support Team
Support Team posted this 20 March 2025

Hi, Micke,

I see you published your website on external hosting. It allows you to do the following: create a new HTML document, paste your code there, save it in your site root, and display it through the HTML Element using this code:

<iframe src="code.html" width="500" height="500" />

You can set any width and height in this code. Will it be helpful?
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

mickeHyman
64 Posts
mickeHyman posted this 20 March 2025

Hi Paul,
It doesn't work...
This is the code I have pasted into the custom html field in the editor for the page:

<iframe src="gagnef_fiske_karta.html" width="600" height="600" style="border: none;" />

Error message:
Forbidden
You don't have permission to access this resource.

BR
Micke

Last edited 20 March 2025 by mickeHyman

Support Team
Support Team posted this 20 March 2025

Hi, Micke,

The code itself works, but for some reason, this resource cannot be displayed on your website. If you have such a possibility, could you please check the permissions of this custom HTML code?
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

mickeHyman
64 Posts
mickeHyman posted this 20 March 2025

Hi,
The permissions for the file is 0755 so it's all allowed.

BR
Micke

Support Team
Support Team posted this 21 March 2025

Hi, Micke,

I checked this map on my test server and it is displayed well. Please see the attached screenshot:

screenshot.png

For some reason, it cannot be displayed on your server due to some limitations. Clarify please, do you have access to the settings of this map?
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

mickeHyman
64 Posts
mickeHyman posted this 22 March 2025

Hi Paul,
It looks exactly as it should.
Yes I have access to everything on my webhost as I am an acclount owner for several sites.
Is there anything I should do?

Best regards,
Micke

Support Team
Support Team posted this 24 March 2025

Hi, Micke,

We are sorry for the delay.

This issue seems to be caused by your server as my test server displays the map without any issues. We still suggest checking all the security settings of your hosting and making sure nothing blocks this file. You can also contact your hosting provider concerning this error.
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

mickeHyman
64 Posts
mickeHyman posted this 26 March 2025

Hi Paul,

Thanks for the feedback. You are definitely right here, I have opened a case with my hosting provider so hopefully it is solved soon.

BR
Micke

Support Team
Support Team posted this 26 March 2025

Hi, Micke,

We hope so too! Please keep us informed about your issue.
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

mickeHyman
64 Posts
mickeHyman posted this 27 March 2025

Hi Paul,

Yes I will update once a solution is in place, or whatever the outcome will be.

Best regards
Micke

You must log in or register to leave comments