- This topic has 12 replies, 2 voices, and was last updated 8 years, 5 months ago by Sakin.
-
AuthorPosts
-
October 3, 2015 at 4:09 pm #67866GregoryMember
Hello,
I’ve been searching and read some past posts about this topic, but I feel like there has to be a way to make my featured images show on post pages.
I love this theme and just purchased and configured it to my site last night, but I’d really prefer to not have to go through 1,500 posts just to add the same featured image to the top of the body for it to show on the post page.
Is there some css I could add to fix this, or maybe a plugin that could suffice?
Please let me know. My site is http://www.nerdunderground.net
October 3, 2015 at 9:22 pm #67872SakinKeymaster@Gregory: Sorry I don’t get it what do you mean. When I check in your site, you have featured image. Can you explain in detail please.
October 3, 2015 at 10:25 pm #67873GregoryMemberI’m talking about the featured image displaying on the individual post page. When you click on the article, it doesn’t show the featured image. It only displays on the homepage and in the slider.
October 4, 2015 at 5:02 pm #67882SakinKeymaster@Gregory: Yes, you are right. It only display in archive and slider. If you want to show that then you need to build child theme. For child theme refer to http://catchthemes.com/blog/create-child-theme-wordpress/ and then copy
content-single.php
file and add the following code after<div class="entry-content">
<?php if( has_post_thumbnail() ): if ( $options['sidebar_layout']= 'no-sidebar-full-width' ) { the_post_thumbnail( 'featured-slider-larger' ); } else { the_post_thumbnail( 'featured-slider' ); } endif; ?>
October 4, 2015 at 5:22 pm #67886GregoryMember@Sakin You’re the man! Thanks so much. I’ve never gotten around to using a child theme, and it’s bitten me in the ass one too many times. It worked flawlessly.
October 4, 2015 at 5:23 pm #67887October 8, 2015 at 4:56 pm #68103GregoryMember@Sakin I was wondering if you could adjust the code to show the full featured image on the single post page. Currently it crops the image, which cuts much of it out.
Would be much appreciated!
October 8, 2015 at 10:27 pm #68111SakinKeymaster@Gregory: If you want full image then replace your code
<?php if( has_post_thumbnail() ): if ( $options['sidebar_layout']= 'no-sidebar-full-width' ) { the_post_thumbnail( 'featured-slider-larger' ); } else { the_post_thumbnail( 'featured-slider' ); } endif; ?>
With the following:
<?php if( has_post_thumbnail() ): the_post_thumbnail( 'full' ); endif; ?>
October 8, 2015 at 11:15 pm #68121GregoryMember@Sakin Thank you. Worked perfectly.
October 8, 2015 at 11:17 pm #68122GregoryMember@Sakin Just a question, but on my single post page, there’s no space between the featured image and the body content. You can see an example here:
http://nerdunderground.net/phantom-ganon-and-skull-kid-confirmed-for-hyrule-warriors-legends/
Is there a quick css fix for this?
October 8, 2015 at 11:43 pm #68126SakinKeymaster@Gregory: You can add the following css in “Appearance => Theme Options => Custom CSS” box:
.entry-content .attachment-full { margin-bottom: 20px; }
October 8, 2015 at 11:59 pm #68129GregoryMember@Sakin Again, thank you very much. Couldn’t be more happy with your support.
October 9, 2015 at 12:03 am #68130SakinKeymaster@Gregory: Thanks for your appreciation and if you like my support and theme then please post in your valuable review and rating at https://wordpress.org/support/view/theme-reviews/catch-box?rate=5#postform
-
AuthorPosts
- The topic ‘Show Featured Image on Post Page’ is closed to new replies.