PDA

View Full Version : Wordpress image alignment help



KathleenMN
February 11th, 2010, 02:06 PM
I'm having a problem with my wordpress blog and am hoping someone can help me get unstuck.

My image doesn't seem to want to change alignment. When I look at it in the edit screen, it appears on the right side, which is where I want it, however, when I save and go look at my blog, it is on the left.

I've tried clicking on the right alignment in the main edit post screen, and tried putting in the code on the html screen with no success.

Anyone have any idea what may be going on and how I can fix it?

Thanks in advance,
Kathleen

wade_watson
February 11th, 2010, 09:34 PM
I've found that some themes will set image alignment such that it overrides the settings you make in the media editor. You might temporarily switch themes and see if does the same thing in that one. Changing a theme's image position setting will take getting into style.css. Since every stylesheet is different, it could take a bit of trial and error code tinkering to change this. If I found my theme was changing image alignment, I'd just switch themes.

Wade Watson

AlexNewell
February 12th, 2010, 05:33 PM
Kathleen -just a couple of questions

Do you have a fairly up to date version of wordpress? I am pretty green er images and have not had any probs with image alignment or text wrapping.

Try Wade's suggestion - perhaps it's a theme issue

do you have tiny mce advanced plugin installed?

Courtney
February 12th, 2010, 10:46 PM
Newer versions of WordPress require a certain bit of css code in the stylesheet of themes in order for the alignment to work correctly. You can check out the code need here: http://codex.wordpress.org/Using_Images

If your theme doesn't have this code in the style.css file, it is very easy to add it.

Clay Franklin
February 12th, 2010, 11:54 PM
I use edit post, insert image. then go to advanced and click float right and usually add a destination link for the image and also open in new window button. If you post your link I will look at the code of the site too.
Courtney had a great ideas also.

KathleenMN
February 16th, 2010, 03:29 AM
Here's the link: indoor bonsai tree (http://www.indoor-bonsai-tree.net). It's the picture in the first post that I am trying to move.

lindastacy
February 16th, 2010, 10:45 AM
I think the theme CSS overrides the alignment. I found a solution in the WordPress forums (link below). But using it might mess up other image alignments on your blog so you might set up a separate css img class to use for right alignment when you need it.

http://wordpress.org/support/topic/248758