Quantcast
Viewing all articles
Browse latest Browse all 134630

nimnoi on "Editor changes my embed code"

Hi, I've been embedding youtube videos with the following code:

<object type="application/x-shockwave-flash" style="width:315px; height:240px;" align="left" hspace="10px" data="http://youtube.googleapis.com/v/eG8evfdwjhM?start=0&version=3&autoplay=0&modestBranding=1&controls=0&rel=0&loop=1&showinfo=0">

<param name="movie" value="http://youtube.googleapis.com/v/eG8evfdwjhM?start=0&version=3&autoplay=0&modestBranding=1&controls=0&rel=0&loop=1&showinfo=0" />
  <a href="http://youtube.googleapis.com/v/eG8evfdwjhM?start=0&version=3&autoplay=0&modestBranding=1&controls=0&rel=0&loop=1&showinfo=0"><img src="http://img.youtube.com/vi/eG8evfdwjhM/0.jpg" width="315" height="240" align="left" hspace="10px" alt="[Youtube Today Show 8 Minute Dating]" />Today Show on 8 minute dating</a>
</object>

It displays perfectly unless I change from text editor to visual, or engage the add media button to add an image. When I do, WP changes my code to look like this:

<object style="width: 315px; height: 240px;" width="320" height="240" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" align="left" hspace="10px"><param name="src" value="http://youtube.googleapis.com/v/eG8evfdwjhM?start=0&version=3&autoplay=0&modestBranding=1&controls=0&rel=0&loop=1&showinfo=0" /><embed style="width: 315px; height: 240px;" width="320" height="240" type="application/x-shockwave-flash" src="http://youtube.googleapis.com/v/eG8evfdwjhM?start=0&version=3&autoplay=0&modestBranding=1&controls=0&rel=0&loop=1&showinfo=0" align="left" hspace="10px" /><a href="http://youtube.googleapis.com/v/eG8evfdwjhM?start=0&version=3&autoplay=0&modestBranding=1&controls=0&rel=0&loop=1&showinfo=0"><img src="http://img.youtube.com/vi/eG8evfdwjhM/0.jpg" width="315" height="240" align="left" hspace="10px" alt="[Youtube Today Show 8 Minute Dating]" />Today Show on 8 minute dating</a></object>

Which makes the video and image display separately.

Is there a setting in WP that I can alter to make the editor stop auto changing my code?

Or could somebody give me an idea how to code my twenty twelve child-theme to do so?

thanks


Viewing all articles
Browse latest Browse all 134630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>