Showing website in iframe with shortcode
-
Hi, I'm trying to show a website I designed on my portfolio in a iframe adding on shortcode. But I add the code and I see my website, not the link I put on.
<iframe name=”web_plamobilitat” src=”http://www.lalcudia.com/WEBMOBILITAT” frameborder=”1″></iframe>
Anyone knows what happens?
Thank you
Carles -
Dear @caromo
if I have a look at your sourcecode I cannot see any iframe:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style type="text/css"> html, body, #partner, iframe { height:100%; width:100%; margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent; } body { overflow:hidden; } </style> <meta content="NOW" name="expires"> <meta content="index, follow, all" name="GOOGLEBOT"> <meta content="index, follow, all" name="robots"> <!-- Following Meta-Tag fixes scaling-issues on mobile devices --> <meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"> </head> <body> <div id="partner"></div> <script type="text/javascript"> document.write( '<script type="text/javascript" language="JavaScript"' + 'src="//sedoparking.com/frmpark/' + window.location.host + '/' + '1und1parking7' + '/park.js">' + '<\/script>' ); </script> </body> </html>
Are you sure it is in?
Best!
Marius
-
Hi Marius, I don't have knowledge to do this but I found on internet, and tried to insert in sortcode in one test page.
Look the link and picture... maybe it's in wrong place.
https://carlesrodrigo.es/home-2
thank you
-
Dear @caromo
I can see that the frame works.But why do you use an iframe? You can achieve the same result without. I strongly recommend not to use an iframe.
Have a look here: https://www.ostraining.com/blog/webdesign/against-using-iframes/Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it