Categories
MetaBlogging

Get images to display right in feed readers

Today’s quick blogging tip is mostly for WordPress users, WordPress.com and self-hosted. Have you ever worked so hard on perfecting your latest post, putting in the most awesome images to go along with it, carefully centering them and aligning them left and right until it looks perfect? I know I have. And then the post comes up in my feed reader and it looks like this:

image align

What happened to all that careful work?

Well, to get technical, website incompatibilities. The latest version of WordPress adds a special code to align images using the design coded into WP sites with cascading style sheets (CSS). However, when that post with that special code goes out to other sites, like Bloglines and Google Reader, those sites don’t have the same CSS, so they can’t understand the code.

What to do?

Well, the answer is a little bit technical—but admit it, you’ve always wanted to learn a little HTML and CSS and feel cool, right?

The fix

As normal, upload your image and select your alignment.
image align2

When you return to your post window, find the HTML tab at the top of the post box and click on it. This changes your view of the post to see the code behind it.
image align3

Find the code for your image. It will look something like this:

<img title="image align" src="Your File Path on your site/2009/12/image-align.png" alt="image align" width="500" height="249" class="aligncenter size-full wp-image-1695" />

The green part is the WordPress CSS code that puts the image where you want it (center/right/left).

To fix it, you will add a little snippet of code to this section, before the /> :

align="left" (or right or center)

Save your draft and it should show up right in feed readers now! (You can also switch back to the Visual tab now.)

Technical note 1: the align element is “deprecated,” meaning that it’s outdated and at some future date, it may not work anymore. However, this is just a quick fix; it doesn’t have to work forever because you have the other WordPress code in place. If you want the “real” code to make it work, the “permanent” solution (the currently acceptable HTML/CSS code for this) is style="float:left;" . If you can remember that, great. If not, don’t sweat it.

Technical note 2: this method also works to align your images if your template doesn’t have the special WordPress code in the CSS, but you can also add this to your style.css file (found under Appearance>Editor):

.aligncenter {display: block;margin-left: auto;margin-right: auto;}
.alignleft {float: left;}
.alignright {float: right;}

However, feed readers will still need the help until they get with the program, I guess.

Categories
MetaBlogging

RSS Awareness Day!

We interrupt our previously scheduled Making Mother’s day merry post for a public service announcement.

Today is RSS Awareness Day (and no, I didn’t make that up: see RSSDay.org). Tired of visiting all your favorite blogs only to discover that they don’t have any updates? Maybe it’s time to look at converting to RSS.

RSS, which is usually said to stand for “Really Simple Syndication,” is an easy way to have updates from your favorite blogs sent to you—either to your email or to an RSS reader.

If this sounds appealing to you, check out my post on What’s RSS? to learn more. Already using RSS in a reader and your blog? The post also has tips for getting more out of your blog’s RSS feed!

If RSS still sounds rather mysterious, you might want to review the video in the What’s RSS post for an easy-to-understand explanation of how it all works!

My readers’ most popular feed readers are Google Reader, which is what I use (you can also use the iGoogle personalized homepage under this one) and Bloglines. To receive updates from MamaBlogga in your RSS reader or email inbox, click on the image or text links to the right!

Back to your regularly scheduled blogging, already in progress.