“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.
- The topic ‘“Continue reading” link on image.php’ is closed to new replies.