Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Checking if blog is inside a frame (http://forum.bytesforall.com/showthread.php?t=6797)

tokorhon Apr 20, 2010 06:15 AM

[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?

juggledad Apr 20, 2010 09:28 AM

try ato->Add HTML/CSS Inserts->HTML Inserts: Body Tag

tokorhon Apr 20, 2010 11:22 PM

Works like a charm. Thanks!


All times are GMT -6. The time now is 03:32 PM.

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