WordPress.org

Ready to get started?Download WordPress

Forums

Media Uploaded not Saving Image Titles (13 posts)

  1. johnharmon
    Member
    Posted 1 year ago #

    My website, in case you need it: http://www.mintconditioncustom.com

    I just started noticing this yesterday. I'm sure it wasn't a problem before, but every time I upload images, and edit them so they have titles, they're never saved.

    Well, actually they are kinda. I can see everything fine in the media library, and it has my titles here just fine. But when I try inserting them into a post, for whatever reason, the title never follows. And I have to go and insert it myself manually, which becomes a gigantic pain if you have several images for a post.

    Any ideas what could be causing this?

  2. bts31
    Member
    Posted 1 year ago #

    I started having the same issue when I upgraded to 3.5. Have not found a solution yet.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    @bts31: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem - despite any similarity in symptoms - is likely to be completely different.

    Any ideas what could be causing this?

    The automatic addition of the title attribute to image markup was removed in WordPress 3.5. Tooltips can still be added by opening the Edit Image modal and inserting something into the title attribute box. The only change is that the "Title" field — which is the name of an image's attachment page — does not populate the title attribute.

  4. johnharmon
    Member
    Posted 1 year ago #

    The automatic addition of the title attribute to image markup was removed in WordPress 3.5. Tooltips can still be added by opening the Edit Image modal and inserting something into the title attribute box. The only change is that the "Title" field — which is the name of an image's attachment page — does not populate the title attribute.

    But...why? That makes it so much harder when you're mass adding images to your post and want them to all have titles.

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    It's a web accessibility issue.

  6. johnharmon
    Member
    Posted 1 year ago #

    What does that mean?

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    The previous markup was causing issues for users/visitors with disabilities

  8. johnharmon
    Member
    Posted 1 year ago #

    So there's nothing I can do, except manually add the titles to the images in the posts then?

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    Correct - unless someone comes up with a plugin to add title attributes into to image markup automatically. However you might want to bear in mind that sites with higher accessibility levels tend to do far better in Google than their non-accessible counterparts.

  10. johnharmon
    Member
    Posted 1 year ago #

    How does having titles in the images limit accessibility? If anything, I thought it made it easier. And I thought it helped improve your SEO as well.

  11. esmi
    Forum Moderator
    Posted 1 year ago #

    Screen reader, switch, VR users and sighted keyboard navigators do not have access to the title attribute, therefore any information that is being presented via that attribute is hidden from them. Site authors should NEVER rely on that attribute to convey information that, ideally, should be presented in clear text on the page. This contravenes the first of the 4 principles of web accessibility - that content should be Perceivable. WordPress core is now merely following best practice in this regard by not auto-inserting non-perceivable content.

    If something is worth putting in a title attribute, then 9 times out of 10, it should be on the page instead - where everyone can see it.

    And fwiw, titles attributes are weighted lower than plain text by Google - thanks to years of people try to use them to keyword stuff. :-/

  12. johnharmon
    Member
    Posted 1 year ago #

    Is the alt tag also useless then?

  13. esmi
    Forum Moderator
    Posted 1 year ago #

    Absolutely not! It's used by screen reading software and other non-graphical user agents to render a description of the image as the users of this software type cannot actually see the image. So, for example, if you posted an image of a chart, the alt attribute might contain a short summary of what the chart shows. Or if you use a header image as a link to the front of your site, the alt attribute might say "Home" or something else short but meaningful.

    In general, it's a "what to show when the image can't be shown" fallback. Google does take note of image alt attributes (after all, it cannot "see") but, again, don't use the attribute to keyword stuff. That won't go down well with Google or with disabled users who are then bombarded with spam-like text. Like The Force, use it wisely. :-)

    It's also quite permissible to leave the alt attribute blank if the image is just a bit of eye candy with no actual informative value within the page.

    Here's a very quick but useful test: imagine reading out a page on your site to someone over the phone. Do you have to stop to explain any images? If "yes", then those images should have short descriptions in the alt attribute. If "no", then those images can safely be left with a null (alt="") alt attribute.

    HTH

Topic Closed

This topic has been closed to new replies.

About this Topic