Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Remove Header completely for iframe


  #1  
Old Jan 19, 2011, 11:34 PM
Christophermathis
 
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

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.

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

Bookmarks



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 09:52 PM.


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