Zen Cart Logo
Forums / General Questions / iframe corrupts Zen pages ??

iframe corrupts Zen pages ??

Views: 883

Results 1 to 5 of 5
11 Apr 2014, 5:22 PM
#1
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

iframe corrupts Zen pages ??

Whenever I try to imbed a video at the bottom of a category page witht he below iframe code, all the products listings disappear.. ?

<iframe width="420" height="315" src="//www.youtube.com/embed/2bn0H9igPvw" frameborder="0" allowfullscreen></iframe>

If I use the old youtube imbed code such as :
"<object width="420" height="315"><param name="movie" value="//www.youtube.com/v/2bn0H9igPvw?hl=en_US&version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/2bn0H9igPvw?hl=en_US&version=3" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>"

it does NOT affect the product listings.

Is there an end code I can put after the iframe code so it does not prevent my products from listing?

11 Apr 2014, 6:00 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: iframe corrupts Zen pages ??

What do you mean by 'category page' ? I placed your code as the category description and it works Ok for me.

11 Apr 2014, 6:53 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: iframe corrupts Zen pages ??

If you look here:

http://www.stevesh.com/demo/index.php?main_page=index&cPath=1_4

I've used the <iframe> embed and it works OK. I can't see what might be causing your problem, unless it has to do with your pasting your description from some kind of WYSIWYG editor (MS Word?) which is known to cause strange issues in Zencart.

Switching temporarily to the Classic template might provide a clue, too.

11 Apr 2014, 8:18 PM
#5
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: iframe corrupts Zen pages ??

Ahh nostalgia :smile: