144 posts CoralixThemes
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has referred 50+ members
  • Has sold $125,000+ on Envato Market
+5 more
CoralixThemes says

Hi guys,
I need some help! My last work has a problem with Themeforest top bar. For some reason the demo is working fine but when I try to see the preview (which includes Themeforest top bar some scripts stop working). Any idea?
Themeforest item: http://themeforest.net/item/candidate-political-donation-landing/7143739
Demo here: http://candidate.coralixthemes.com/

1498 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+9 more
ImanGM says

Hi,

I guess it’s because some JS codes are not permitted to load when your site is loaded in an iframe from another domain name than your site.

This is why I’ve removed the default ThemeForest top bar on my latest item with one on my own host.

Hope this helps.

Cheers,
Iman

1283 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 more
Smartik says
Remove the iframe. Add this in the header of your template.
<script>if ( top !== self ) top.location.replace( self.location.href );</script>
144 posts CoralixThemes
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has referred 50+ members
  • Has sold $125,000+ on Envato Market
+5 more
CoralixThemes says

Hi, Thank for your help. I try this with my custom top bar but it didn’t work. :(


Hi,

I guess it’s because some JS codes are not permitted to load when your site is loaded in an iframe from another domain name than your site.

This is why I’ve removed the default ThemeForest top bar on my latest item with one on my own host.

Hope this helps.

Cheers,
Iman
144 posts CoralixThemes
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has referred 50+ members
  • Has sold $125,000+ on Envato Market
+5 more
CoralixThemes says

Thank you so much. It works! You save my day :)


Remove the iframe. Add this in the header of your template.
<script>if ( top !== self ) top.location.replace( self.location.href );</script>

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by