View Single Post
Old 2009-03-14, 01:36 PM   #2
whitey
Hey, can you take the wheel for a second, I have to scratch my self in two places at once
 
Join Date: Aug 2003
Posts: 186
Quote:
Originally Posted by Pendo View Post
I just upgraded wordpress, and it worked well. But when I added first post my sidebar.php went bellow the page. I didn't touch anything on index.php, it just went down. Tried to just update the sidebar.php and index.php, but no good. It's the same when I change the theme...Can someone help me how to get it back ?

http://www.pregnantsex4u.com/blog/
It is something in your theme and the underlying code in your posts.

I had this problem on a site onetime and it was a consequence of the theme not reading the default alignment code for images in the wordpress image manager. I overrode that with the text alignment button in TinyMCE to align images. When I updated Wordpress, the sidebar dropped to the bottom. When I overrode it by using a <div align""> coding to center my pics, the sidebar returned. Be aware that using <div> tags in your TinyMCE editor will be overwritten by WP if you switch back to the visual editor and each time you go back to edit the post.

Without seeing the coding on your theme, however, it is difficult to tell the specific thing that is causing this. As an experiment, I would suggest removing all alignment codes used on your images in your posts on the front page and see if that solves the problem. Your images will be aligned left, but your sidebar may return. If you can live with that, you can offset the images using the <ul> tags in the TinyMCE editor.

Additionally, you can then experiment with alignment using <div> tags to recenter your images. Just publish/update the post while still in HTML mode and then do not go back to visual mode.

Also note that using the text alignment function to center images in the TinyMCE editor will play games with theme coding on many older themes - and 2.5+ optimized themes on WP 2.5+. If you are using the text alignment code to center images, it will cause many problems in newer versions of wordpress because of the implementation of the media placement elements in 2.5 and above and shortcodes. The solution to that is to eliminate all TinyMCE coding from around your images or delete them and reupload them using the image placement capablilities of wordpress and see if that works.

All of the above experiments assume you are not comfortable with css and php coding. If you are, you can probably find the cause in your theme templates - likely function.php, page.php,index.php,home.php, post.php or your stylesheet. I solved this once on an older theme, but, not being a php expert, it took me quite a few iterations to solve, and I have long forgotten the details of that little excursion.

Finally, you could experiment with different themes. Just be aware that they will each treat your current image alignment method differently. If the theme is optimized for 2.7, or at least 2.5 or above, they should work with the default image placement method in the wordpress image management interface as image centering was always a pesky thing prior to 2.5.

A little confusing but I hope that it helps.
__________________
Erotica Blogs: SEO Softcore Blog Directory. Register and Submit Here

Last edited by whitey; 2009-03-14 at 01:39 PM..
whitey is offline   Reply With Quote