Support » Plugin: Facebook Photo Fetcher » Empty photo title on hover.

  • Resolved Bob

    (@roy-nouneh)


    When FB pictures are uploaded without a caption, FB fetcher assigns the picture an empty title='' which can look awkward when a user hovers.

    In order to fix this I’ve modified the following line:
    $link = '<a rel="' . htmlspecialchars($album->link) . '" class="fbPhoto" href="'.$photo->source . '" title="'.$caption_with_br.' " ><img src="' . $photo->source . '" alt="" /></a>';

    To the following:

    if ($caption_with_br != '')
                $link = '<a rel="' . htmlspecialchars($album->link) . '" class="fbPhoto" href="'.$photo->source . '" title="'.$caption_with_br.' " ><img src="' . $photo->source . '" alt="" /></a>';
    else
                $link = '<a rel="' . htmlspecialchars($album->link) . '" class="fbPhoto" href="'.$photo->source . '"><img src="' . $photo->source . '" alt="" /></a>';

    I figured someone else might find it useful so I’ve put it here.
    Cheers.

    PS
    Great plugin!

    http://wordpress.org/extend/plugins/facebook-photo-fetcher/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Empty photo title on hover.’ is closed to new replies.