Title: Featured Image Link 404
Last modified: August 30, 2016

---

# Featured Image Link 404

 *  Resolved [briancorder](https://wordpress.org/support/users/briancorder/)
 * (@briancorder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/featured-image-link-4040/)
 * I have started using the box template recently. Featured images display correctly,
   but if a user clicks on the image link it returns a 404. The download button 
   itself works correctly with the correct link. I looked to see if I could customize
   the template and remove the URL from the image, but the only function call is‘
   <?php $dlm_download->the_image(); ?>’
 * When looking through the functions I don’t see where it pulls the url for the
   download differently than for the image. In loading Twenty-Fifteen there is no
   link generated for the featured image.
 * In my theme I can’t find where it would pull the url for a featured image. I’m
   assuming it has something to do w/ permalinks and not rewriting the friendly 
   url.
 * I’m cross posting this in my theme’s support as well. Any help would be appreciated.
 * Theme U-Design (Themeforest)
    Lots of plugins, but deactivated all.
 * Example:
    [http://buildblock.com/technical-support/installation-manuals/](http://buildblock.com/technical-support/installation-manuals/)
 * Image URL = 404
    [http://buildblock.com/?post_type=dlm_download&p=2645](http://buildblock.com/?post_type=dlm_download&p=2645)
 * Button url = correct
    [http://buildblock.com/download/buildblock-icf-installation-manual/](http://buildblock.com/download/buildblock-icf-installation-manual/)
 * [https://wordpress.org/plugins/download-monitor/](https://wordpress.org/plugins/download-monitor/)

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

 *  [mdmower](https://wordpress.org/support/users/mdmower/)
 * (@mdmower)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/featured-image-link-4040/#post-6316541)
 * This sure seems like a theme issue, since the featured image is not wrapped by
   an anchor tag in Download Monitor. For example, using the default 2014 WordPress
   theme, I found the box template output the following (pseudo)code:
 *     ```
       <aside class="download-box">
         <img ... >
         <div class="download-count">...</div>
         <div class="download-box-content">...</div>
       </aside>
       ```
   
 * The [image fetch code](https://github.com/download-monitor/download-monitor/blob/1.8.0/includes/class-dlm-download.php#L168)
   uses WordPress’ native [get_the_post_thumbnail()](https://codex.wordpress.org/Function_Reference/get_the_post_thumbnail)
   function, which does not wrap the image with an anchor link. I’d suggest rummaging
   around your theme settings, or perhaps looking at the featured image’s parameters
   in the Media Library to figure out what’s adding that wrapper link.
 *  Thread Starter [briancorder](https://wordpress.org/support/users/briancorder/)
 * (@briancorder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/featured-image-link-4040/#post-6316571)
 * Thanks. I did cross post in the theme’s support site as well. It has to be something
   the theme adds when it pulls a featured image and grabs a url w/o taking into
   account the permalink structure.
 * I would be fine if I could just force the theme to strip the link entirely. I
   have been through all of the theme settings and can’t find anything that controls
   this behavior. If I find a solution, I will pass it along here as well.
 *  Plugin Contributor [Barry Kooij](https://wordpress.org/support/users/barrykooij/)
 * (@barrykooij)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/featured-image-link-4040/#post-6316760)
 * Setting this as resolved here since it’s a theme issue. If you find a solution,
   feel free to share it here. It might help other users in the future! Thanks.

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

The topic ‘Featured Image Link 404’ is closed to new replies.

 * ![](https://ps.w.org/download-monitor/assets/icon-256x256.png?rev=3198936)
 * [Download Monitor](https://wordpress.org/plugins/download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-monitor/reviews/)

## Tags

 * [featured image](https://wordpress.org/support/topic-tag/featured-image/)
 * [Image URL](https://wordpress.org/support/topic-tag/image-url/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 3 replies
 * 3 participants
 * Last reply from: [Barry Kooij](https://wordpress.org/support/users/barrykooij/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/featured-image-link-4040/#post-6316760)
 * Status: resolved