WordPress.org

Ready to get started?Download WordPress

Forums

Coraline
Featured Image not showing? (5 posts)

  1. drials2
    Member
    Posted 7 months ago #

    http://www.rialedup.com

    featured image is not displaying? I havent been able to find much guidance on this? Please help.

  2. Hi there, featured images in Coraline are displayed the header area, so they must be a minimum size so they display correctly.

    Could you please check that your featured images are all at least 990px wide by 180px high?

  3. drials2
    Member
    Posted 7 months ago #

    no the featured images are not that dimension, however, i was hoping that i could specify the size I wanted? Is that possible? 990px X 180px is a strange size for a fashion blog, I want to change it. Is the code in the header.php or custum header.php? Thanks for your reply. Check out chefandsteward.com that's what I want it to look like (they are using the coraline theme).

  4. drials2
    Member
    Posted 7 months ago #

    Hi, I see what you mean but I want the featured image to show on the main page where all the posts are located. I uploaded a test post with a featured image at 990px X 180px and yes, you are correct, the featured image shows up in the header of the "posts" page but still nothing on the home screen, I would like the featured image on the posts page as well as the home page for each post.

  5. Thanks for the additional information. Coraline doesn't display featured images for each post on the homepage, but it can be done with some editing of loop.php in your child theme folder. Are you comfortable editing PHP/HTML theme files? You would need to insert a featured image to the loop.php file.

    The code to display a featured image for each post would be something like this:

    <?php
       if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail
       the_post_thumbnail('medium');
       }
    ?>

    You'd add this code where you would like the featured image displayed.

    More about the featured image (aka post thumbnail) function.

    You can also use a different size than medium if you'd like the featured images smaller or larger.

    You could try adding it after line 143:

    <div class="entry-content">

    You'll then need to add corresponding CSS to your child theme's style.css file to style the featured image as you like.

    Good luck!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.