Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14575

    Hello people,

    I found a thread about disabling title of images when “mouse over”. What I want is the opposite: is there a way to show title when “mouse over” partner logos?

    Regards,

    Flavio

    #84058

    Hello,

    Open includes > helper-templates.php find this code.

    $img = wp_get_attachment_image( $set['img'] , 'logo' );

    Replace it with this

    $img     = wp_get_attachment_image( $set['img'] , 'logo' , '0' , $default_attr = array(

    'alt' => trim(strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )),
    'title' => trim(strip_tags( $attachment->post_title )),
    ));

    Regards,

    Ismael

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

The topic ‘Show title when "mouse over" partner logos’ is closed to new replies.