Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #67866
    Gregory
    Member

    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

    #67872
    Sakin
    Keymaster

    @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.

    #67873
    Gregory
    Member

    I’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.

    #67882
    Sakin
    Keymaster

    @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; ?>
    #67886
    Gregory
    Member

    @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.

    #67887
    Sakin
    Keymaster

    @Gregory: Yes, need to be careful about using child theme as it can change anything.

    #68103
    Gregory
    Member

    @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!

    #68111
    Sakin
    Keymaster

    @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; ?>
    #68121
    Gregory
    Member

    @Sakin Thank you. Worked perfectly.

    #68122
    Gregory
    Member

    @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?

    #68126
    Sakin
    Keymaster

    @Gregory: You can add the following css in “Appearance => Theme Options => Custom CSS” box:
    .entry-content .attachment-full { margin-bottom: 20px; }

    #68129
    Gregory
    Member

    @Sakin Again, thank you very much. Couldn’t be more happy with your support.

    #68130
    Sakin
    Keymaster

    @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

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Show Featured Image on Post Page’ is closed to new replies.