Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Remove Header completely for iframe (http://forum.bytesforall.com/showthread.php?t=12348)

Christophermathis Jan 19, 2011 10:34 PM

Remove Header completely for iframe
 
I was having so many problems with this I thought I would post how I did it.

I was trying to make a page appear within a page, and also allow users to navigate to the page without having multiple pages to update, add to the header.php, or create a new template.

I found that what I could do is add

Code:

<!--iframe changes-->
<script language="JavaScript">
<!-- if (self !== top) document.write('<body style="background:none"><style type="text/css">td#header {display: none;}</style>'); //-->
</script><!--iframe changes-->

to the HTML Inserts: Body Top section.

By doing this I effectively pulled the background out of the page and pulled the header out.

The reason I was doing this was primarily that I have an old site that I am slowly migrating over to Wordpress and while I am doing that I don't want to have to update the code in multiple locations, but I also don't want people to see or navigate on the new site. I also pulled this section out because I could not directly remove bits and pieces to have it work as I had widgets added to the header area.

I just wanted to pass along something that took me several weeks of "playing" to figure out. I enjoyed the playing time it showed me what more I can do with the site that I never thought was going to be possible.


All times are GMT -6. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.