Twenty Eleven Image Attachment Page
-
When adding a picture to a post, I have the options to open the image in a new page/tab when clicked, or view it in the image attachment page (image.php).
The problem is that when I click an image in a post, and it opens in image.php, the link back to the post is dead. The color is there, and it looks like a link, but no cursor change, and no action when clicked. That also goes for the link to the full size version of the image.
The code looks like below, and the only thing I’ve changed is “Published” to “Publisert”, the same word in norwegian.
printf( __( '<span class="meta-prep meta-prep-entry-date">Publisert </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'twentyeleven' ), esc_attr( get_the_time() ), get_the_date(), esc_url( wp_get_attachment_url() ), $metadata['width'], $metadata['height'], esc_url( get_permalink( $post->post_parent ) ), get_the_title( $post->post_parent ) );
Anyone else got this problem?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Twenty Eleven Image Attachment Page’ is closed to new replies.