WordPress.org

Ready to get started?Download WordPress

Forums

Image alignment in 2.6 messing up in RSS feed (24 posts)

  1. seanpaune
    Member
    Posted 6 years ago #

    I upgraded my two blogs to 2.6 and I usually right align my images, well since the upgrade, I have written one post on each, and they messed up. On the posts on each (seanpaune.com and startertech.com) for today, on the actual blog, the images are right aligned with text wraparound, but in the RSS feed, they are on the left with no wraparound.

    Anyone have any clue why this is happening? And more importantly, how to fix it?

    Thanks in advance,
    Sean

  2. Anonymous
    Unregistered
    Posted 6 years ago #

    Yeah, this sucks. Up to 2.51 when aligning to the right, a style="float: right;" would be added into the img tag, so that the image would be align to the right everywhere.

    It could have been seen as a dupe for the alignright found under class, but had the great advantage of working even in RSS feeds. Now for some reason it's been removed, and WP only relies on the alignright class, which means that
    - if it's not in your theme, it won't be aligned to the right on your blog
    - no matter what, your feeds are screwed!

    I really hope this can be fixed/resorted back to the way things were before.

    For now on, you have to click HTML and manually add style="float: right;" inside the img tag, which is quite a PITA...

  3. rikkidegraz
    Member
    Posted 6 years ago #

    http://ceconn.com/say-cheese/2008/05/11/mississauga-marathon/

    In Admin the text wraps to the right of the image but not when you view online.

    Any ideas? I did the float; left; thing and that made the picture float to the left but the text isn't wrapping when viewed online.

  4. rikkidegraz
    Member
    Posted 6 years ago #

    Then I deleted and inserted gallery. Still a mess.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Using manual styles in your feeds is a damn fine way to mess up your feeds in most every feedreader out there, with the exception of Google Reader which fixes those sorts of issues automatically.

    Ideally, you should keep your content simple and basic, not specifying manual stuff like that. You have no guarantee how a feedreader is going to deal with it.

    Feeds should not contain "styles", is what I'm getting at here. Feeds are content-only, by design. They should be style free.

  6. Anonymous
    Unregistered
    Posted 6 years ago #

    Well, I don't know what you classify as "styles", but then the ability to put within the img tag a simple align="right" for example would be a good thing, as it would work in feeds as well.

    On many feeds you get a picture aligned left or right that goes along the article, so it's not like a screenshot or anything like on many software blogs, and to be able to have the text around the picture with an align left/right is a must, really.

    It used to work with WP2.5 and I've seen it done in about every feed for sites that uses such pictures, feels like this is just like a tag to put things in bold or italic really. No?

    I don't really know how WordPress work precisely and what's doable and what is not, but if this won't be fixed, could there be a way to achieve it via plugin (add the align property for the img tag) ?

    Cause again, for me it's a must and having to manually edit the edit is a bit of a pain, to be honest.

  7. seanpaune
    Member
    Posted 6 years ago #

    Otto, it worked up through WP 2.5, so why take it away? It wasn't harming anything, and now my images look horrible in RSS

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    @_fred_: The "align" tag is deprecated and is not valid anymore. Hasn't been for a long time.

    @seanpaune: Just because it works in the very few test cases you've done doesn't make it correct. Web standards exist for a reason. You'd be well advised to follow them.

  9. seanpaune
    Member
    Posted 6 years ago #

    @Otto great, so one of my blogs isn't aligning correctly now, but that's okay because it's now "standard".

    For a moderator, you have an awful lot of attitude towards people who are just confused why things changed and would like to see an explanation.

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    seanpaune: But I just gave you an explanation. Things changed in order to comply with the current web standards. What more explanation do you want?

    Okay, I get that you don't like it, but don't get all angry at me just because you don't like the standards or disagree with them. They are what they are.

    Quite frankly, I agree with the change. WordPress should not use deprecated tags, and feeds shouldn't have styling in them. That goes against the whole point of a feed in the first place, as a feed is supposed to contain syndicated content, not formatting information.

  11. NLXJ
    Member
    Posted 6 years ago #

    Well...I use image align left and right ALL over! And it has always worked in feeds. Feedburner specifically offers feeds that you can style. And I think they have enough experience in feeds to do so without being "behind web standards" and such. Perhaps the tag is deprecated. but where? Just in WP? WP is not the web. Even new browsers allow most old tags because nobody expects "the web" to just catch up all at once and right away. If WP is going to suddenly introduce new tags...shouldn't they be a bit more careful about how this is going to affect everyone?

    Note, Otto42, this is not an attack on you, it is just a question aimed at WP.

    Anyway, what is the solution you are offering? Nothing? You are in essence saying, too bad, right?

    Well guess what, I'm still going to use align="left"! etc. It works in WP if you handcode it, and it also will show in feeds the way you designed it. As it should.

  12. seanpaune
    Member
    Posted 6 years ago #

    @Otto, essentially you are saying lump it, and I say "no". Apparently from the other people talking in this thread, a lot of people don't like this, and for those of us who use a lot of images in our posts, our feeds are going to look like a disaster. Up until now I have been an ardent supporter of WP, but this decision is just not a correct one and too sudden.

    @NLXJ where are you inserting the align code? I'm trying it, and it doesn't seem to be working for me.

  13. NLXJ
    Member
    Posted 6 years ago #

    Just code the whole image by hand. it sucks, but its the only path they've left us.

    Go to "HTML" view and code something like

    <img src="URL FOR JPG,etc" align="left" hspace="9" vspace="2" border="0" />

    Still works for me, and shows up properlike in feedreaders!

  14. seanpaune
    Member
    Posted 6 years ago #

    @NLXJ thanks. This really blows, but apparently we're going to have to buck "web standards" to keep our feeds aesthetically pleasing.

  15. NLXJ
    Member
    Posted 6 years ago #

    Perhaps optimistically, I hold out hope that this will be addressed. But for now, unfortunately, if it's a choice between my ease of use and the design of the post, well. I'm an artist! I have to choose the latter. Glad I could help.

  16. zamba
    Member
    Posted 6 years ago #

    I've just upgraded my wife's blog to 2.6 and she now finds that the images she aligns right in the post, although showing up correctly aligned with text wrapping in the editor, show aligned left and without text wrapping in the preview. A code e.g.

    [caption id="" align="alignright" width="135" caption="Les Arenes, Nimes"]<img title="Les Arenes, Nimes" src="http://www.travelsignposts.com/Destination/d/32076-2/France_Helen_1076.jpg" alt="" width="135" height="102" />[/caption]
    
    Stage 13 of the Tour de France is still in the Languedoc-Roussillon region which stretches from the foothills of the Pyrenees on the Spanish border to the mouth of the Rhône.

    Obviously she can hand code an align tag in it, but why isn't this working? This could be a royal pain.

    Tony Page

  17. Anonymous
    Unregistered
    Posted 6 years ago #

    Because there is an organisation named W3C (World Wide Web Consortium) that makes standards for how the web is supposed to be coded - if people actually bothered following the standards, there wouldn't be thousands of badly coded webpages out there that breaks in other browsers than specific versions of Internet Explorer etc.

    Opera and Firefox are good examples of browsers that do a decent job of pertaining to the standards.

    Deprecated tags and inline styling of HTML-elements is preferably to be avoided. Inline styling is perfectly valid use of the "style"-tag, but should preferably be put in an external CSS-file, so as to simplify the HTML and ease the changing of styles at later stages.

    Styling of a RSS-feed should not be done, simple as that. This is not something WordPress has done - they've just taken away the automatic support for a deprecated styling-tag, and that is a good thing. Of course people who's gotten used to the tag complains, and want it back - I for one don't. There are probably other ways of getting this through in the feeds, but I don't see the point - an RSS feed is not supposed to look like the webpage - nor the post itself, for that matter. An RSS-feed is supposed to take the content of the site, and present it in a simple, text-only matter.

    I do not remember the original specification right now, but I wonder if there wasn't even an initial support for images in the feeds, although I might be mistanken regarding that.

  18. Oceanwatcher
    Member
    Posted 5 years ago #

    I for one would love to have styles in feeds. The author is putting thought into how the article is presented, where the picture goes etc. And yes, I really would like the article to be presented that way in my feedreader, not in a crappy text view. I know there are some people that would rather have an article without any pictures and with a monospaced font so it takes us back to the typewriter days. But that just is not very readable!

    I totally agree that the styling preferrably should be in an external css file. But as far as I know, there are no possibility to send this with a feed so far. Maybe this would be a good addition to the RSS standard :-)

    I agree that something like this should be done in a very clear way with advice how to get it working the way it should work. Just taking it out like it has been done now makes a lot of frustration and can seem a bit arrogant for the normal users. This is something that forces all template authors to update their templates.

  19. stcrim
    Member
    Posted 5 years ago #

    Is it possible to code the float part into the css and make it work?

    Steve

  20. Delete Me
    Member
    Posted 5 years ago #

    Worse comes to worst you could always use a desktop application like Blogdesk or Windows Live Writer, which will happily stylize the images for you so they show up properly in feeds as well, standards be damned.

    I think a compromise might be in order by allowing a MINIMAL of styling, just enough to align text and images properly. The fact is most avid feed users use Bloglines or Google Reader which both convert the styling of content even if they shouldn't have, creating a demand for rich content even in feeds. When I check my feeds, I can see images, text and even embedded videos, and though it may not be standardized, it's still far better than loading an entire website to view the same content. While W3C may have meant feeds to be text only, the reality makes that impossible. Eventually the standards will have to change to adapt to the growing use of feeds and the expectation that such feeds should have rich, stylized content as well.

  21. Delete Me
    Member
    Posted 5 years ago #

    Actually, I found a better solution:

    When writing a post in WordPress and embedding an image, go through the normal process of embedding it as usual. Once it's embedded, click on the image and then click on the icon on the top left within the image allowing you to edit it even further.

    A menu will open up. Click on Advanced Settings. Voila, you can now style and change the borders, hspace, vspace, change the CSS classes, change the size and even stylize any links associated with it without ever having to dig into the HTML. Isn't TinyMCE wonderful? =D

    It's an added step, but it's still far better than the alternative of having to manually edit it in HTML.

  22. craigbox
    Member
    Posted 5 years ago #

    See this bug - 2.5 removed "align=right", and now 2.6 has removed "float: right" from the feed.

    In the bug, I have asked Otto what the best step forward would be for people who wish to regain this feature.

    His response:

    While I still think that is a very bad idea to include styles in feeds, I admit that it does work in the current situation... The ideal of "feeds should be text + minimal HTML only" is not something the world is ready to cope with.

    What it looks like to me is that we need a feed-only filter to recognize the alignleft/alignright classes and add the style = floats in there in that case.

    This is complicated due to captioning, I think, which now gets the styling for alignleft/right.

  23. headelf
    Member
    Posted 5 years ago #

    It gets even worse . . . for those of us using justified images. I both left and right justify images. I have no beef with left justify, it seems to work fine, adding hspace (l/r margin) around the image and centering the caption, but the left align SUCKS. Not only does it NOT center the caption, it also doesn't add hspace.

    Where is the consistency here? I had to fiddle and I HATE having to fiddle when the programming should handle this consistently.

    ElfN

  24. Joe
    Member
    Posted 5 years ago #

    Can anyone guide me on how to get images in a post to show up in the feed?
    I have tried 4-5 different plugins and nothing works. Make me think that is something in the settings that I have to do or something. In old posts in doesn't pick up any image and also tried it creating new posts.

    Any assistance will be greatly appreciated. For faster assistance please email me at jmoya@comcast.net

    Joe-

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.