Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Checking if blog is inside a frame


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 20, 2010, 06:15 AM
tokorhon
 
5 posts · Apr 2010
[SOLVED] Checking if blog is inside a frame

I run my Wordpress/Atahualpa blog inside a frame like this

<frameset>
<frame src="other.html" name="other" id="other">
<frame src="blog/index.php" name="blog" id="blog">
</frameset>

If someone accidentally opens the blog without a frame by going directly to blog/index.php I want to redirect to ..\index.html frameset. In other.html I have this piece of javascript in body's onload

if (self == top) {
self.location.href = '../index.html';
return;
}

Where should I put that with Atahualpa?
  #2  
Old Apr 20, 2010, 09:28 AM
juggledad's Avatar
juggledad
 
21,970 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
try ato->Add HTML/CSS Inserts->HTML Inserts: Body Tag
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Apr 20, 2010, 11:22 PM
tokorhon
 
5 posts · Apr 2010
Works like a charm. Thanks!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Theme Frame preserve Atahualpa's standard settings ? 3ukman ThemeFrame Presales 4 May 21, 2012 01:15 AM
Theme Frame perfomance 3ukman ThemeFrame Presales 2 Feb 14, 2010 12:15 AM
[SOLVED] allign page menu with inner frame f0rd42 Header configuration & styling 2 Jul 9, 2009 07:32 AM
Image not centered in frame paulae Atahualpa 3 Wordpress theme 1 May 4, 2009 09:20 PM


All times are GMT -6. The time now is 10:37 PM.


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