• I’m using WordPress 3.0.04 with Atahaulpa 3.6.1. I have trouble with youtube videos in that they don’t like to hold their center format. If i I use the center button on the “kitchen” sink then I often get jsut the text of the link instead of an embedded video. The only way that works is to switch over to the HTML view and manually type it every time but it often loses the formatting. Whenever I edit or change a post I have to go back and reenter the <CENTER> tags manually.

    Does anyone have a good recommended plugin or other way to fix this? I embed a lot of youtube videos and I want them to be centered but it’s very tedious to keep them there.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • its probably because you switch between html and visual mode.

    Once you go to html mode for a post, if you enter any html….. it gets lost if you go back to visual. If you do all your edits in html mode, you will be safe

    But an easier method may be to just use css to style all your videos if possible

    I don’t use videos, so I don’t know what code they output….but if any classes or IDs are available to you you can use them in your css

    .whatever-class {
          margin: 0 auto;
    }

    Thread Starter singledudetravel

    (@singledudetravel)

    I don’t find that anything gets lost except the youtube <center> tags. The rest of it stays. Usually the only reason I go to HTML mode is to fix the youtube cetnering. Why don’t they just fix this bug if it’s known?

    Do you know somewhere where I can read more about your suggested css fix? I really don’t know much about how that works.

    Thanks.

    Why don’t they just fix this bug if it’s known?

    currently tinymce is used as the editor, we are stuck with whatever bugs it comes with….. there are other editors available but I haven’t messed with them

    If you can post a link to a post with a video and I can see if there are already selectors to work with

    Thread Starter singledudetravel

    (@singledudetravel)

    Thanks a lot for your help. I guess it’s not a huge deal I’m just picky about formatting. There is a link with a video below. I keep going in and fixing it manually but inevitably another contributor wants to make a minor change and it goes back to left align. I guess I should just leave them all left align but I wish I could just force them center. I’ve finally got all the bugs worked out of my blog except that one (and this other one http://forum.bytesforall.com/showthread.php?p=54725#post54725) otherwise it’s perfect.

    http://www.singledudetravel.com/2011/01/a-plea-to-stag-parties/

    Thread Starter singledudetravel

    (@singledudetravel)

    Did they ever come up with a fix on this yet?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Youtube videos don't hold their formatting.’ is closed to new replies.