Title: “Continue reading” link on image.php
Last modified: July 28, 2018

---

# “Continue reading” link on image.php

 *  [thorirv](https://wordpress.org/support/users/thorirv/)
 * (@thorirv)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/continue-reading-link-on-image-php/)
 * Looking for a way to modify the _“Continue reading”_ link on attacment pages.
   By default this link is added to the **Caption**, and (oddly?) links to the attachment
   page itself, the same page the reader is looking at.
 * It would make sense to me to have the link text added after the **Description**
   instead and link to the parent post, where the image is being used.
 * The template file for image attachments is image.php, and it seems to me that
   lines 50-54 are serving the caption, like so:
 *     ```
       <?php if ( has_excerpt() ) : ?>
           <div class="entry-caption">
               <?php the_excerpt(); ?>
             </div><!-- .entry-caption -->
       <?php endif; ?>
       ```
   
 * But I can’t seem to figure out where the _“Continue reading”_ text/link comes
   from or how to remove it, and add to the description. Would greatly appreciate
   advice, including links to articles that might help me better understand the 
   underlying structures.

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

 *  [lizkarkoski](https://wordpress.org/support/users/lizkarkoski/)
 * (@lizkarkoski)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/continue-reading-link-on-image-php/#post-10551684)
 * Hi –
 * Thanks for writing to us.
 * 1. the Continue Reading link shouldn’t be there, and we’ll look into that.
 * 2. Manually add a link from the Description field if you would like to link back
   to the page that the image is attached to, but that’s not a change we’d make 
   in the theme now because it would cause this link to suddenly appear for other
   people, and they may not want it.
 * Hope that helps!
 *  Thread Starter [thorirv](https://wordpress.org/support/users/thorirv/)
 * (@thorirv)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/continue-reading-link-on-image-php/#post-10554739)
 * Thanks [@lizkarkoski](https://wordpress.org/support/users/lizkarkoski/)
    1. Yea, I couldn’t see the logic for adding a _ReadMore_ link to the caption. This
       explains..
    2. I understand. The plan was to add it to a child theme file.
 * Thanks again!
    -  This reply was modified 7 years, 9 months ago by [thorirv](https://wordpress.org/support/users/thorirv/).
 *  [lizkarkoski](https://wordpress.org/support/users/lizkarkoski/)
 * (@lizkarkoski)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/continue-reading-link-on-image-php/#post-10555648)
 * No problem. Take care 🙂

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

The topic ‘“Continue reading” link on image.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/resonar/1.0.8/screenshot.png)
 * Resonar
 * [Support Threads](https://wordpress.org/support/theme/resonar/)
 * [Active Topics](https://wordpress.org/support/theme/resonar/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/resonar/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/resonar/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [lizkarkoski](https://wordpress.org/support/users/lizkarkoski/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/continue-reading-link-on-image-php/#post-10555648)
 * Status: not resolved