• Resolved stobian

    (@stobian)


    I have been working with the ‘Glare’ theme for my photography website and have added some permalinks in the php code so the thumbnails on the front page link with their corresponding galleries. Here is the website: naturalcaptures.com
    here is the code I entered:
    <a href="<?php the_permalink() ?>"><?php the_post_thumbnail('gallery_thumb', array('class'=>'scale-with-grid')); ?></a>

    I’ve approached it a few ways and no matter what I do, there always seems to be extra white space being added above and below the thumbnail when the permalink is added.
    All I can figure is that the permalink is taking up more space than the thumbnail. Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your theme has a custom CSS style on the <a> tags within the .set div.
    Add this to your CSS (or inline)

    .set > a { padding: 0 0 10px 0; }

    Play around with the bottom (the 10px) padding until it looks like you want.

    Thread Starter stobian

    (@stobian)

    Ha! You’re a genius! 10,000 gold stars to you! Thanks so much for your help.

    IT’S RAINING GOLD STARS! Much better than the typical Portland rain-rain, thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Permalink to front-page thumbnail creates unwanted space’ is closed to new replies.