Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Showing website in iframe with shortcode

    General Discussion
    2
    4
    275
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      caromo last edited by

      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

      1 Reply Last reply Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

        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

        www.mariusjopen.world

        1 Reply Last reply Reply Quote 0
        • C
          caromo last edited by

          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

          alt text

          1 Reply Last reply Reply Quote 0
          • mariusjopen
            mariusjopen Global Moderator last edited by

            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

            www.mariusjopen.world

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Before you post

            Use the Search Feature. Maybe there is already a solution to your issue.

            1. Update Lay Theme and all Lay Theme Addons
            2. Disable all Plugins
            3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
            4. Now see if your problem solved itself
            5. Go here, see if your problem is listed here:
            Troubleshooting

            When you post:
            1. Post a link to where the problem is
            2. If the problem is difficult to explain, post screenshots / link to a video to explain it

            Thanks!

            Online Users

            Recent Topics

            • N

              website blank.

            • S

              Theme crashed - because of Polylang?

            • S

              New fade-in / opacity bug?

            • A

              Unable to update lay theme / to login wp admin

            laytheme.com