Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23728

    I would to show in a mouseover label the name of a photo in 3 colums product gallery, thanks!!

    #120934

    In wp-contentthemesflashlightwoocommerce-configconfig.php replace:

    echo $image;
    echo $link;

    with

    if(empty($thumbid)) $thumbid = get_post_thumbnail_id(get_the_ID());
    $attachment = get_post( $thumbid );
    $image = str_replace("<img", "<img title='{$attachment->post_title}'", $image);

    echo $image;
    echo $link;

    #120935

    I have replaced that, but it doesn´t work…

    You can see here: http://www.sio2.es/tienda/modulos/

    #120936

    I just tested it and it works for me: http://www.screenr.com/Sa8H – however I can imagine that not all browsers display a tooltip if you hover the mouse over the image.

    #120937

    Yes yes… I didn´t write anythin in description filed, sorry!!

    It works perfect!!!

    Thanks a lot!!!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Show image tittle onmouseover in 3 colums product gallery’ is closed to new replies.