WordPress.org

Ready to get started?Download WordPress

Forums

SEO Friendly Images
Fix extra spaces (1 post)

  1. Clifford Paulick
    Member
    Posted 1 year ago #

    When using %title for img title and %name %title for img alt, I see a leading space in the alt tag but not the title tag.
    Example:

    title="This is a post"
    alt=" This is a post"

    Also, if there is " - " in the post title, it shows up with several spaces, like this:
    post title: WordPress Survey 2012 – Help Shape WordPress

    title="WordPress Survey 2012   Help Shape WordPress"
    alt=" WordPress Survey 2012   Help Shape WordPress"

    Looks like %name isn't picking up anything but adds a leading space.
    If I use just %name for alt tag, I get invalid HTML: http://screencast.com/t/z62YYytkpE

    If I use just %title in alt tag, I get no leading space in the alt tag--works just like the title tag did above.

    Thanks, Vladimir

    http://wordpress.org/extend/plugins/seo-image/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Clifford Paulick
  • This topic is not resolved
  • WordPress version: 3.4.2

Tags

No tags yet.