0

I'm trying to right align (class="alignright") a YouTube video AND allow my client to edit the surrounding text in the future using the visual editor. I simply added class="alignright" to the tag containing the embed using the HTML editor however when any changes are made to the text using the visual editor WordPress strips the extra code. I think it might be impossible to get the result that I want but could anyone confirm my suspicions or give me a workaround.

1

Use an id and CSS selector for the element and align it in your stylesheet.

2
  • Do you mean that WordPress will not strip an id the way it strips the class ? – byronyasgur Oct 4 '11 at 21:43
  • No, I mean do it from outside of the post via external style sheet, so you don't have to worry about the stripping of code. So target the object for that post id. – Drai Oct 4 '11 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.