Title: Image linking wrong
Last modified: October 10, 2017

---

# Image linking wrong

 *  Resolved [pgene](https://wordpress.org/support/users/pgene/)
 * (@pgene)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/link-on-image-wrong/)
 * Hello,
 * i want to report a Bug (i think it is one). In my Case the Images are all link
   to
    [http://albes.lu/](http://albes.lu/)**cr3ativsponsor/sponsorname/**
 * But when i select “show the sponsor name”, the Name it self is linked correctly
   to the website.
 * Same issue via widget and shortcode.
    Any thoughts how to fix this?
 * I allready checked some Code, but i dont get it, where is the differance or the
   Error ? o_O
 *     ```
            if( $image == 'yes' ) { 
                if( $link == 'yes' ) { 
                   $output .= '<a href="'.$temp_sponsorurl.'" target="_blank"><div class="cr3_sponsor_image">'.$temp_image.'</div></a>';
            ;} else {
                    $output .= '<div class="cr3_sponsor_image">'.$temp_image.'</div>';
                ;}
   
            ;} 
            if( $title == 'yes' ) { 
                if( $link == 'yes' ) { 
                   $output .= '<h2 class="cr3_sponsorname"><a href="'.$temp_sponsorurl.'" target="_blank">'.$temp_title.'</a></h2>';
            ;} else {
                    $output .= '<h2 class="cr3_sponsorname">'.$temp_title.'</h2>';
                ;}
   
            ;} 
       ```
   
    -  This topic was modified 8 years, 8 months ago by [pgene](https://wordpress.org/support/users/pgene/).
    -  This topic was modified 8 years, 8 months ago by [pgene](https://wordpress.org/support/users/pgene/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flink-on-image-wrong%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [pgene](https://wordpress.org/support/users/pgene/)
 * (@pgene)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/link-on-image-wrong/#post-9616058)
 * I get it, it was a feature in my Template (Parabola) that generates Pagelinks
   on thumbnails and so overwrites the link with the internal one. Crazy but true.
   😉
    -  This reply was modified 8 years, 7 months ago by [pgene](https://wordpress.org/support/users/pgene/).

Viewing 1 replies (of 1 total)

The topic ‘Image linking wrong’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-sponsors_e7e7e7.svg)
 * [Sponsors](https://wordpress.org/plugins/wp-sponsors/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-sponsors/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-sponsors/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-sponsors/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-sponsors/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [pgene](https://wordpress.org/support/users/pgene/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/link-on-image-wrong/#post-9616058)
 * Status: resolved