Fix Youtube overlay prettyphoto/fancybox

I was struggling when i found that when you opened an image on prettyphoto and you had an embed youtube video at the description it would show over the pics…after googling and trying i found 2 options to fix this.

Option 1



at the end of the iframe url of the embed code

Option 2

i found this method because i did not want to go to all the embed videos i had and modify them, so this you do not need to add the &wmode=opaque to the url it will do it automatically

You have to create a file named at this folder skins/YOU_SKIN/customer/addons/my_changes/hooks/index/

The file should contain this:





This code was found at http://maxmorgandesi…z_index_issues/

I am be no mean a coder so if there is someone who knows of a better way please post it

I don't know if this will help, but I found the same overlay problem in wordpress and the solution was to add:


in youtube embed code, example: