Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Matt Lewis
Matt Lewis
5,970 Points

Wordpress title on featured thumbnail hover?

Hello everyone!

I have my featured posts showing up in my portfolio page just fine, but i can't see to get any hover effects working with them. I want to achieve something similar to this codrops blueprint (http://tympanus.net/Tutorials/CaptionHoverEffects/index3.html).

This is what I have in my template file:

<div class="featured-hover">
<a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'large' ); ?></a>
<span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span>
</div>

Anybody know the best way to go about this? I've been trying for a couple hours now and my minds boggled.

Thanks in advance! Matt Lewis

You are missing the semi-colon after the first the_permalink(), Just saying ;)

1 Answer

have you read this article: http://tympanus.net/codrops/2013/06/18/caption-hover-effects/ you have to get your output from wordpress to be the same stucture to the example and then you can apply the right css classes from the example. for example they are using the html element figure and figcaption

if you want more help you need to show your code so we can see where you are stuck.