• Resolved andkon

    (@andkon)


    I’m trying to help someone setup a new blog. I want to insert thumbnail images and have those link to the attachment page with the full-sized images. Currently I can only 1) post in the entry itself the full-sized images OR 2) post thumbnails that link to the full-sized image directly OR 3) post thumbnails that link to the attachment page but with a smaller and resized image.

    I want thumbnail images that link to the attachment page that has a fully sized image, not resized, for example not this: https://meetthegods.com/?attachment_id=17 (The actual image is much bigger, this.)

    I know HTML/CSS, what do I do? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andkon

    (@andkon)

    Anyone? Help would be much appreciated!

    Thread Starter andkon

    (@andkon)

    Anyone know where and which file I need to edit?

    Thread Starter andkon

    (@andkon)

    Solved:

    wp-includes –> post-template.php –>

    function prepend_attachment($content) {
    	$p = '<p class="attachment">';
    	$p .= get_the_attachment_link(false, true, array(400, 300));
    	$p .= '</p>';
    	$p = apply_filters('prepend_attachment', $p);
    
    	return "$p\n$content";
    }

    Change the array(x,y) to whatever maximum value you want!

    thanks a lot for the solution. I spent days trying to figure it out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Thumbnail link to image attachment page is not full sized!’ is closed to new replies.