Alternate way to post thumbnails?
-
Hey everyone so I’m in a bit of a pickle. I use rounded images in my home/index page on my posts. But when people actually click on the post itself I would like it to be a larger image without the rounded corners (And drop shadow for that matter). So I was wondering if there’s a normal way to do this. I was thinking maybe creating a function that checks the page URL say, currentpage(); that returns a variable and then making something like:
if ($pagenow = ?php the_permalink(); then go_to_alternate_link);
And make this into a shortcode. thumb [‘blah.jpg’, ‘blah_thumb.jpg’]
Is there a less messier way to do this? Maybe a built in function that I missed? The problem is I’m also using an infinite scroll type layout so there is already a lot of back and forth requests being made already. I don’t want the page to be sluggish.
THank you.
- The topic ‘Alternate way to post thumbnails?’ is closed to new replies.