Style post format on home only
-
I’m trying to style the post format aside only on the front page of my blog. Specifically, I want it to give me a larger thumbnail there. Problem is, that also changes the way aside posts are displayed in tag and category archives — which I don’t want.
This is what I have in my content.php:
<?php if ( has_post_format('aside') ) { the_post_thumbnail('large'); } else { the_post_thumbnail('medium'); } ?>
Adding either
&& is_front_page()
or&& is_home()
to the first conditional statement, however, doesn’t seem to make a difference. Am I doing something wrong?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Style post format on home only’ is closed to new replies.