Okay
  Public Ticket #149723
Issue with blog thumbnail
Closed

Comments

  • Jennifer started the conversation
    Hello, I removed the feature image from one of my blog posts and embedded the image within the blog instead. I added an alternate thumbnail to be used on the previews and on my home page but it isn't showing up. When I had the featured image and the alternate thumbnail the thumbnail worked great. Now that the feature image is gone so is the thumbnail. How can I fix this?
  •  291
    Paul replied

    Hi Jennifer,

    By default, the theme will always check the featured image first and use it for the thumbnail of the Blog element. But if you also specify the alternate thumbnail, it will be used instead.

    Note that this only works for the Blog element. For the general blog page, it always uses the featured image.

    So, in this case, you can just upload the featured image and leave the alternate thumbnail blank. :)

    Regards,
    Paul

  • Jennifer replied

    Hi Paul,

    Thank you for the quick response.  Unfortunately the default size of the featured image is not what I am looking for, therefore embedding the image within the blog post itself makes more sense for me.  But if I do that I no longer have a thumbnail next to the blog listing on my home page or under the lists of blogs on my blog landing page.  And if I upload the image to featured image and embed it into the post I have two versions of the same image next to each other, which doesn't look right.  What exactly is the blog element?  Maybe that's the issue?  Otherwise is there a way to disable the use feature image on the general blog page so that it will use the alternate thumbnail instead?  

  •  291
    Paul replied

    I am not sure whether we are talking about the same blog stuff. So, please firstly let me explain about the blog on this theme.

    There are two ways to list blog posts which are:

    1. Using native WordPress feature for the blog page

    In this case, you just create a blank page then go to "Settings > Reading" and select "Posts page" to point to that created page. This tells WordPress to list all of your blog posts on the selected page. Every post showing on this page will use "Featured Image" for the thumbnail. Example of blog page: http://themes.uxbarn.com/wp/fineliner/blog/

     

    2. Using theme's blog element

    This is the one you are using on your homepage or other pages. It is the element that you added using Visual Composer (screenshot: http://d.pr/i/Jp82 ) on the page edit screen. Using the element like this may need the different thumbnail proportion comparing to the blog page's so that is why the "Alternate Thumbnail for Blog Posts Element" option is there for each blog post. It will simply let the user to upload the different thumbnail. Anyway, you can leave the option blank and the element will use the Featured Image for the thumbnail.

     

    *The bottom line is, Featured Image is required for both cases for showing the post thumbnail. So, if you would like to upload the image only once for each post, use Featured Image.

     

    Now, as to my understanding to your case, did you mean you want to hide the post thumbnails only on the blog page but not on the element that is using on homepage? If so, you would need to  remove the following code in "index.php" file:

    <?php if ( has_post_thumbnail() ) : ?>
         <div class="blog-item-thumbnail border <?php echo $blog_thumbnail_class; ?>">
    	<a href="<?php echo get_permalink(); ?>"><?php echo get_the_post_thumbnail( $post->ID, $uxbarn_blog_thumbnail_size ); ?></a>
         </div>
    <?php endif; ?>

    Removing this code will remove the thumbnail display on the blog page.

    Cheers,
    Paul

  • Jennifer replied

    Hi Paul,

     

    What I am actually looking for is the ability to upload and have a visible thumbnail WITHOUT using a featured image.  I don't like the sizing on the featured image so I don't want to use it.  But I DO want thumbnails to appear on my homepage and blog posts and anywhere else.  Is that something that you can help me with?

    Thanks,

    Jennifer

  •  291
    Paul replied

    Hi Jennifer,

    Unfortunately, there is no option for that out of the box. You would need to manually customize the theme if you would like it to work as per your requirement.

    In case you are not familiar with coding, I would recommend to find a freelancer/developer to help you on the theme customization.

    Cheers,
    Paul