Javascript breaks style
-
I have included this piece of code at the top of my index.php file:
<script language=”javascript”>
if(top==self)
this.location=’http://www.somedomein.es/somefolder/page’;
</script>
It checks if bbpress is loaded into an iframe and if not, it redirects to http://www.somedomein.es/somefolder/page and this page load bbpress correctly into an iframe.
It works perfectly but it breaks the style making the some fonts bigger that they should.
If I remove the javascript code everything works normally again.
Any suggestions ?
Thanks in advance.
- You must be logged in to reply to this topic.