Add large image to attachment page in Thesis

/ Published in: PHP
Save to your folder(s)

You will probably have to hide the medium sized image.

Copy this code and paste it in your HTML
  1. function custom_attachment() {
  2. if (is_attachment()) {
  3. echo wp_get_attachment_image( $post->ID, 'full' );
  4. }
  5. }
  6. add_action('thesis_hook_before_post', 'custom_attachment');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.