BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Post Featured Images
- This topic has 5 replies, 2 contibutors, and was last updated 9 years, 11 months ago by Alyssa.
Question
December 10, 2014 at 12:23 pm #33902@
AnonymousI’ve seen some old posts regarding the lack of featured images on posts. I’ve added the following to the content.php file in my child theme:
<?php if ( has_post_thumbnail() ) : ?> <a class="entry-post-thumbnail" href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('large'); ?> </a> <?php endif; ?>
No luck. Is still an issue with default posts or might something else be afoot?
Thanks
Answers
December 10, 2014 at 3:00 pm #33907@alyssa-buddyboss
AlyssaParticipant@scotm19 that text needs to go anywhere between lines 18-23 of content.php though you will probably need to add some CSS to get it to align right for your site.
December 11, 2014 at 9:48 am #33922@
AnonymousTJ
Ok, working now, though the thumbnail sizes are a bit messed up. For single posts I’ve changed that code to show ‘full’ size but they’re showing up as small thumbnails. Thoughts?
December 11, 2014 at 10:15 am #33927@alyssa-buddyboss
AlyssaParticipant@scotm19 ‘full’ will show the original file resolution my only suggestion is that the image used was small when uploaded. Here is to WP codex for reference: http://codex.wordpress.org/Function_Reference/the_post_thumbnail
December 11, 2014 at 10:31 am #33928@
AnonymousNo that’s not the case. I have 720px wide images I was using in a different theme that should fit nicely with BB. May be a cache issue for now.
December 11, 2014 at 5:38 pm #33930@alyssa-buddyboss
AlyssaParticipant@scotm19 it is possible the other theme changed the full size image and it would require reuploading the photo with BuddyBoss enabled. Let me know what you find out.
- The question ‘Post Featured Images’ is closed to new replies.