260 posts What we do in life, echoes in eternity!
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Europe
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
Prothemeus says

I’m not sure if this is encountered by others but I think it’s important as it may have an impact on sales. The problem is that most of the times I visit a product demo (this applies to most authors) on Themeforest through the Live Preview button on my iPad, it crashes my iPad browser no matter which browser I use.

I also don’t have enough time to close the iFrame as it crashes the browser before I can remove it.

Am I the only one?

44 posts
  • Bought between 100 and 499 items
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Exclusive Author
  • Most Wanted Bounty Winner
ppandp says

Hi Prothemeus,

I have encountered the same issue, also when trying to view other templates and themes from different authors. Same applies to my iPhone 5.

20 posts
  • Bought between 1 and 9 items
  • Sold between 1 000 and 5 000 dollars
  • Exclusive Author
  • Has been a member for 0-1 years
softcircles says

same thing happens to me few hours ago, I thought its browser issue. I restarted it and it was fine. will check it again.

65 posts
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
  • Referred between 10 and 49 users
  • Has been a member for 1-2 years
  • India
templatin says

Same here.

I have reported the problem to Envato support (Ticket #BAY-159-21143) couple of days back and waiting for their reply.

Some features of my theme demo don’t work when Themeforest iframe is enabled. So, the buyers will think there’s a bug in the demo and hence make an impact on sales.

28 posts
  • Australia
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
medium_rare says

Same issue here – the top frame does strange things to my templates, this seems to have gone on a while. Can any envato staff weigh in??

553 posts Fuel Your Web
  • Elite Author
  • Won a Competition
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 7-8 years
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Europe
Pirenko says

I have developed a script that removes the frame and reloads the page on mobile devices. This way I don’t have this issue :)

1070 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says

I’ve just added this script in my latest item and I will include it all my comming themes and templates:

Between <head> tags:
<script>if ( top !== self ) top.location.replace( self.location.href );</script>
553 posts Fuel Your Web
  • Elite Author
  • Won a Competition
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 7-8 years
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Europe
Pirenko says

@ Smartik: I think you should not add any extra code to your themes and templates. And also this seems to apply to all devices and this is not what was intended with this thread.

65 posts
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
  • Referred between 10 and 49 users
  • Has been a member for 1-2 years
  • India
templatin says

@Smartik: I have tested the script and its working perfect. This is what I was looking for.

@Pirenko: The extra code is supposed to be added only in demos (Live preview) for removing the frame but not in the final package which will be given to the buyers.

1070 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says

@ Smartik: I think you should not add any extra code to your themes and templates. And also this seems to apply to all devices and this is not what was intended with this thread.

This is a general example of how you can remove the iframe and redirect to original demo link. Also you should include this in demo only, no need to include it in theme/template itself.

If you want to apply it only for mobile devices then ofcourse it need more work. You can find a script that detects the device written in JS or PHP or anything else and apply it condittionally. It’s up to you.

An example would be:
JS: https://github.com/barisaydinoglu/Detectizr
PHP: https://github.com/dmolsen/Detector

by
by
by
by
by
by