Adding Permalink to front-page thumbnail creates unwanted space
-
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?
- The topic ‘Adding Permalink to front-page thumbnail creates unwanted space’ is closed to new replies.