Thumbnail in home page

Viewing 9 posts - 1 through 9 (of 9 total)
  • #6170
    heru
    Participant

    Hi Daniel, thank you for the beautiful themes.
    I was using the Minimatica theme but now I would like to use the Pinboard theme.
    My problem is the the thumbnail in the home page is now cropped as in your example (The Golden Spiral entry). How can I make the thumbnail to be like that ?
    My website is http://www.herfina.com.
    Thanks for your support.

    #6210
    Daniel Tara
    Keymaster

    Try using the plugin AJAX Thumbnail Rebuild.

    #6224
    heru
    Participant

    Thanks for your reply. I’ve tried before to rebuild the thumbnails but didn’t work, and today I just tried it again and IT WORKS πŸ˜€ !

    Now a further question :D. When I click on the thumbnail of a gallery post, it displayed directly the image, together with the other pictures on the homepage. How can I make it to go to the post instead ?
    Thanks for your support.

    #6228
    Daniel Tara
    Keymaster

    Short answer: you can’t.

    Long answer: Open the file functions.php, find the function pinboard_post_gallery() and replace this call:

    <?php $image = wp_get_attachment_image_src( $attachment->ID, 'full' ); echo $image[0]; ?>

    with this:

    <?php the_permalink(); ?>
    #6230
    heru
    Participant

    Almost works πŸ˜€ Your suggestion will still open the image pop-up window and when I clicked the picture then it goes to empty screen.
    But you gave me the idea, so I compared the entry for the post title and the thumbnails, and I modified the thumbnails entry according to the title entry for the following line:
    <a href="" title="" class="colorbox" rel="attachment">
    with this:
    <a href="" title="ID ) ); ?>" rel="bookmark">
    and it works !.
    I also modified the pinboard_post_image() function as above.

    Thanks again for your support.

    #6231
    heru
    Participant

    Opps, the code was not displayed properly. How do I insert the code in here ?

    #6232
    Daniel Tara
    Keymaster

    Forgot to mention, also delete rel=”colorbox” from the link.

    #6440
    linsensicht
    Participant

    Hey there,

    I’m having the same problem with Image-Posts. The Images on the Homepage should link to the posts, not just open itself.

    Do I have to combine Daniel’s and Heru’s solution, somehow? Sorry, i don’t have that much php-experience πŸ˜‰

    Thanks for your support!

    #6444
    heru
    Participant

    Hi Linsensicht,

    I don’t have my own solution, it’s from Daniels. Beside the change in the 4th post from Daniel, you also need to delete rel=”colorbox” as noted by Daniel (above your post).

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.