Jump to content
  • 0

iFrame header from Wordpress site won't work in HTML page


Question

Howdy,

 

I have a data page/HTML page I'm building and I want to place my company's header and footer on the page via an iframe.

When I place the iFrame code though, the page will NOT show the header or footer content.

Any idea why this may be happening? And, can it be fixed?

Here's the iframe code:

<iframe src="http://www.ocregister.com/headerfooter?load=header" style="border:0px # none;" name="ocrHdr" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="175px" width="1200px"></iframe>

Thanks in advance,

Geoff

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
7 hours ago, geoffdude said:

Howdy,

 

I have a data page/HTML page I'm building and I want to place my company's header and footer on the page via an iframe.

When I place the iFrame code though, the page will NOT show the header or footer content.

Any idea why this may be happening? And, can it be fixed?

Here's the iframe code:


<iframe src="http://www.ocregister.com/headerfooter?load=header" style="border:0px # none;" name="ocrHdr" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="175px" width="1200px"></iframe>

Thanks in advance,

Geoff

Hi Geoff,

It looks like the reason is mixed content. If you load unsafe code in your browser, the header will appear.

The source of the iframe has http protocol, the datapage is on the https. 

I found a few posts here and here which may be helpful

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...