breaks other iframes
-
Installing this plugin created an error on my facebook like button.
I was getting the following error instead of a button:
“skin must be one of the following values: light, dark”My code was:
<iframe scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:71px; height:20px;" allowtransparency="true" src="https://www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>&layout=button_count&show_faces=true&width=80&action=like&colorscheme=light"></iframe>
It took me a long while to understand that fluid video embeds was adding a “?wmode=transparent” at the end of my href.
I hackfixed it by adding a “&” at the end of my iframe href (so it ends with “colorscheme=light&”) which allowed me to get my like button back, but I thought you should know.
Why not do a regex on the iframe and not act on it if it does not contain youtube|vimeo?
- The topic ‘breaks other iframes’ is closed to new replies.