Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Remove Header completely for iframe

Old Jan 19, 2011, 11:34 PM
3 posts · Nov 2010
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

<!--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.

Last edited by Christophermathis; Jan 19, 2011 at 11:36 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Completely remove next/prev links ronald Center area post/pages 4 Apr 11, 2010 06:42 AM
Problem with google map iframe, IE scrolls down to post with iframe Björn Palovaara Center area post/pages 1 Apr 9, 2010 03:32 PM
[SOLVED] How to completely remove the rotating images and the area containing them cordi Header configuration & styling 2 Apr 5, 2010 12:12 AM
[SOLVED] Removing header &amp; navigation bar completely? Miss R Header configuration & styling 6 Feb 15, 2010 08:56 PM

All times are GMT -6. The time now is 10:13 AM.

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