WordPress.org

Support

Fix extra spaces

  • 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/

  • The topic ‘Fix extra spaces’ is closed to new replies.
Skip to toolbar