Hiding Featured Image in TwentyTwelve Theme
-
Hey y’all!
I am using TwentyTwelve on my site https://jkhnelson.com. I am trying to use the Featured Image to preset the post thumbnail for social sharing, since the thumbnails that Facebook etc picks are usually wrong.I found this code <?php if ( !is_single() ) the_post_thumbnail(); ?> that Gary provided here. Should that only go on the content.php document?
I’ve created a child theme with just that change, but the thumbnails are still appearing when I ‘live preview.’ I basically copied the entire theme and made that one change on that document, but left the rest the same. Is there another change I need to make?
This is my first attempt with a child theme, so I’m not sure if I am editing the correct part. Thanks!
- The topic ‘Hiding Featured Image in TwentyTwelve Theme’ is closed to new replies.