Next and previous thumbnails in posts
-
Hello,
I’m using Minimatica on wp3.5 and I’d like to solve two problems I have with the next and previous thumbnails at my posts.
One thing I’d like to get rid off are the borders that appear around them, I’ve tried a lot of things but I think I just missed the right solution.
The second thing is that I’d like to switch the image with the text on the left button. So that the image will be most left instead of the text.
I’m using this code at the moment:
<div id="cooler-nav" class="navigation"> <?php $nextPost = get_next_post(true); if($nextPost) { ?> <div class="next" style="float:left;"> <?php $nextthumbnail = get_the_post_thumbnail ($nextPost->ID, array(75,75) ); } ?> <?php next_post_link('%link', "$nextthumbnail %title", TRUE); ?> </div> <?php $prevPost = get_previous_post(true); if($prevPost) {?> <div class="previous" style="float:right;"> <?php $prevthumbnail = get_the_post_thumbnail ($prevPost->ID, array(75,75) );}?> <?php previous_post_link('%link',"$prevthumbnail %title", TRUE); ?> </div> </div><!--#cooler-nav div -->Right here you can find my website and have a look at my ‘problem’
websiteThanks a lot!
Bart
The topic ‘Next and previous thumbnails in posts’ is closed to new replies.