Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Troy 8 posts 28 karma points
    Feb 16, 2010 @ 22:40
    Troy
    0

    Image ALT and TITLE Text (SEO & Chrome)

    My current Umbraco Installation translates my Image "Name" and outputs the text into my ALT tag for an Image (this is great and works easily with my marketing Department). However, now went the same text used as the TITLE tage on an image. I have modified the UmbracoSettings and TinyMCE configs to allow the TITLE tag on Images. How do I make Umbraco automatically put this text into the TITLE tag like it already does for the ALT tag?

    Thanks,

    Troy Roth
    Cincinnati, Ohio USA

     

  • Lesley 284 posts 143 karma points
    Mar 06, 2010 @ 21:41
    Lesley
    0

    Hi Troy,

    I'm guessing the alt tag is set in one of your xslt files... something like this?

    <img src="{data [@alias ='imageThumb']}" alt="{@nodeName}" />

    Once you've tracked down this line in the appropriate xslt, obviously you can just update it to:

    <img src="{data [@alias ='photoThumbnail']}" alt="{@nodeName}" title="{@nodeName}" />

    Let us know how you get on.

    Lesley

Please Sign in or register to post replies

Write your reply to:

Draft