Title: Inactive img src
Last modified: August 20, 2016

---

# Inactive img src

 *  [p3mtl](https://wordpress.org/support/users/p3mtl/)
 * (@p3mtl)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/)
 * Hi,
 * Can anyone see where i might have gone wrong with this code:
 * _[broken code moderated – please follow [the forum guidelines for posting code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)]_
 * I’m trying to get the images to hyperlink to websites.
 * Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998118)
 * please re-post your code –
 * without being marked with the _**‘code’**_ button, codes can get corrupted by
   the forum software.
 *  Thread Starter [p3mtl](https://wordpress.org/support/users/p3mtl/)
 * (@p3mtl)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998120)
 * Oops,
 *     ```
       <body <?php body_class(); ?>>
       <div id="page" class="hfeed">
   
       <div id="header_wrapper" style="width:1000px; height:123px; background:#F4F4F4 !important;">
       <div id="header_left" style="margin-left:40px; width:435px;float:left;">
       <a href="http://www.point3.com" target="_blank"><img src="/images/p3293.png" width="293" height="118" /></a>
   
       </div>
   
       <div id="header_right" style="width:525px; float:left; ">
   
       <div style="text-align:right; margin-right:15px; margin-top:15px; font-size:11px; float:right; clear:both;">
       <a href="http://www.facebook.com/p3montreal" target="_blank"><img src="/images/social/fb.jpg" width="29px" height="29px" style="margin-right:10px;" /></a><a href="http://www.twitter.com/point3montreal" target="_blank"><img src="/images/social/twitter.jpg" width="29px" height="29px" style="margin-right:10px;" /></a><a href="http://www.flickr.com/point3" target="_blank"><img src="/images/social/flickr.jpg" width="29px" height="29px" /></a></div>
       <div style="float:right; margin-top:40px; clear:both; margin-right:15px;"><?php do_action('icl_language_selector'); ?></div>
       <div id="page" class="hfeed">
       ```
   
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998147)
 * without error description, a guess: using relative image paths might be the problem;
 * assuming that the images are in the /images folder of your theme,
    try to change
   from: `<img src="/images/p3293.png" ......`
 * to:
    `<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/p3293.png".....`
 * [http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri](http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri)
 * and analogous for the other images.
 * or try use absolute image urls.
 *  [codingpet](https://wordpress.org/support/users/codingpet/)
 * (@codingpet)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998148)
 * You are using relative image path that I think they are incorrect. `src="/images/
   p3293.png"` Is the image in your theme image folder? If yes, you may try `src
   ="<?php bloginfo('template_url'); ?>/images/p3293.png"` to make sure the image
   path is correct.
 *  Thread Starter [p3mtl](https://wordpress.org/support/users/p3mtl/)
 * (@p3mtl)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998156)
 * The image paths are correct and show on the website, it’s more that they don’t
   link to the relevant places.
 * Any ideas?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998159)
 * >  it’s more that they don’t link to the relevant places.
 * do they link at all?
    where do they link to?
 * if they don’t link, then this might be a formatting issue with layers.
 * can you post a live link to your site with the problem?
 *  Thread Starter [p3mtl](https://wordpress.org/support/users/p3mtl/)
 * (@p3mtl)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998161)
 * [http://www.point3.com/](http://www.point3.com/)
 * This is the website. I’m trying to link the Point3 image to the home page. The
   Facebook logo to our FB page and Twitter to our twitter account. I thought the
   code to do that was:
 * `<a href="http://www.facebook.com/p3montreal" target="_blank"><img src="/images/
   social/fb.jpg" width="29px" height="29px" style="margin-right:10px;" />`
 * But it doesn’t seem to be working.
 *  [codingpet](https://wordpress.org/support/users/codingpet/)
 * (@codingpet)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998194)
 * style.css line 530. Find
    #branding { border-top: 0 none; padding-bottom: 10px;
   position: relative; z-index: 2; }
 * change z-index: 2; to z-index: -100; -100 can be other numbers as long as it’s
   less than 0.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Inactive img src’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [hyperlink](https://wordpress.org/support/topic-tag/hyperlink/)
 * [image](https://wordpress.org/support/topic-tag/image/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [codingpet](https://wordpress.org/support/users/codingpet/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/inactive-img-src/#post-2998194)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
