Forums

Cropped Thumbnail won't appear as Featured Image (28 posts)

  1. ColorKey
    Member
    Posted 1 year ago #

    Our Blog is http://www.ledlights101.com
    Just upgraded to 3.0.3

    My cropped thumbnail images don't show as the featured image when selected, the image reverts to the thumbnail image wordpress created automatically. The thumbnail I created does show as the thumbnail in the media library and in the featured image selector. But, when I select it as the featured image the old image instantly appears under the featured image on the posting screen rather than the thumbnail I created. I am selecting the thumbnail size, then clicking on Use as Featured Image and updating the posting. I have cleared my browser cache, deleted the images, renamed them and uploaded them again, but nothing seems to work. I am new to wordpress, but this was working before, but stopped working in the last week or so. Not sure if it is caused by the upgrade to 3.0.3 or not, but it seems suspect to me. Any help or advice?

  2. ColorKey
    Member
    Posted 1 year ago #

    So, what is a reasonable time to wait on a reply to an issue here in the forum? Am I being impatient or have I entered this issue in the wrong place? Has it been resolved somewhere else or something?

    Thanks
    Shawn

  3. banago
    Member
    Posted 1 year ago #

    You are using timthumbs script in the file and it does basically the same thing as the_post_thumbnail, but in a different way. You need to choose to go with one of the solutions. I recommend the built-in one.

  4. ColorKey
    Member
    Posted 1 year ago #

    Thanks a bunch for replying and for the info, but I don't know what timthumbs is or how to disable it. I don't see it in my plugins and not sure what the script would look like in the post or how it might have got there in the first place. I would much rather use the built in WP functions. Any idea how to stop or disable timthumbs?

    Thanks
    Shawn

  5. banago
    Member
    Posted 1 year ago #

    You need to go to the theme files, probably home.php and index.php and remove code that looks like this:

    <img width="120" height="120" alt="DIY LED Halloween Costume-A Jellyfish" src="http://www.ledlights101.com/wp-content/themes/FreshAndClean/functions/timthumb.php?src=http://www.popularmechanics.com/cm/popularmechanics/images/W1/halloween_costumes_14_1010-lg.jpg&h=120&w=120&s=1">

    On theme some part of this code will be PHP - leave that and remove only the timthumb bits.

  6. ColorKey
    Member
    Posted 1 year ago #

    Well, thanks again for the effort, but I am a new to wordpress and a novice at HTML. I don't see how to access home.php or index.php. If I go to the Edit Themes page there is a timthumbs section of code, but no way to disable it. I want to disable it permanently for all the posts. Unless there is some way for me to crop the thumbnails using timthumbs. All I want is to be able to crop a thumbnail and have my version of the thumbnail show up for the post. Whatever is the easiest way to that.

  7. banago
    Member
    Posted 1 year ago #

    If you are that new to WP, it will be a little hard to handle.

    You need to know one thing, the image you put on the post editor is different from the thumbnail image that shows next to posts in homage.

    Would you like me to get on board to help you for a few bucks?

  8. ColorKey
    Member
    Posted 1 year ago #

    Thanks for the offer, but I have a $0 budget. Hate to say this, but I am far more familiar with blogger and wordpress seems to make simple things complicated by comparison. So, I am new to wordpress, but the concepts are not new to me. Is there a tutorial or something I can check out? I have looked for info about timthumbs, but nothing seems to tell me how to crop the thumnails. I am using the Fresh and Clean theme and the thumnail issue seems to be part of the theme. I might consider changing themes, but not sure.

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    @banago: Soliciting for paid work in not allowed on this forum.

  10. banago
    Member
    Posted 1 year ago #

    @esmi: Sorry

  11. ColorKey
    Member
    Posted 1 year ago #

    @esmi Thanks for letting us know, but can you answer my question or offer me any assistance? :)

  12. artbycrunk
    Member
    Posted 1 year ago #

    sorry for the late reply.. firstly yes timthumb is your problem.. incase you dont know timthumb is a famous script online to automatically resize images dynamically to the specified size.. it is being used in many theme to make it hassle free for end-users to crop their images..
    that being said.. i think your better off cropping you own images as you want.. if u can tell me the name of the current theme you are having problems with.. i can help you solve this specific problem..

  13. ColorKey
    Member
    Posted 1 year ago #

    The theme is called "Fresh and Clean." I realize I can download the image and use an image editor to create my own thumnail and then upload that as the featured image. But, this seemed over complicated at first. Now I am thinking that this is the only way. Doesn't seem very user friendly, like timthumbs is creating more work for me by trying to automate what I am going to have to do manually myself anyways. Unless there is an easy way to either turn off timthumbs or crop the thumbnail using timthumbs.

  14. artbycrunk
    Member
    Posted 1 year ago #

    i can understand your frustration at this time.. let me just have a look at that fresh and clean theme u mentioned.. will reply back with the solution in a few minutes..

  15. artbycrunk
    Member
    Posted 1 year ago #

    yes.. ive got the solution.. but the thing is you will need to edit 2 files to get everything working.. so do u know who to edit theme files ?
    it is also advised to backup your previous theme.. just to be safe..

  16. ColorKey
    Member
    Posted 1 year ago #

    I think so, it would be under appearance then editor yes? I can do a back up as well. What do I need to do?

  17. artbycrunk
    Member
    Posted 1 year ago #

    edit the file loop-blog.php..

    search for this code.. it should start from the 27th line..

    <div class="postimg">
    					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/functions/timthumb.php?src=<?php
    				 	if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) {
    						echo $thumbnail[0];
    					} else {
    						$postimage = get_post_meta($post->ID, 'post-image', true);
    						if ($postimage) {
    							echo $postimage;
    						} else {
    							echo catch_that_image();
    						}
    					}
    					?>&h=<?php echo $xs_thumbnail_height ?>&w=<?php echo $xs_thumbnail_width ?>&s=1" width="<?php echo $xs_thumbnail_width ?>" height="<?php echo $xs_thumbnail_height ?>" alt="<?php the_title(); ?>" /></a>
    			</div><!-- /postimg -->

    replace the code with the following code..

    <div class="postimg">
    					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php
    				 	if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) {
    						echo $thumbnail[0];
    					} else {
    						$postimage = get_post_meta($post->ID, 'post-image', true);
    						if ($postimage) {
    							echo $postimage;
    						} else {
    							echo catch_that_image();
    						}
    					}
    					?>" width="<?php echo $xs_thumbnail_width ?>" height="<?php echo $xs_thumbnail_height ?>" alt="<?php the_title(); ?>" /></a>
    			</div><!-- /postimg -->

    refresh the main blog page.. and let me know if that part of your problem is solved.. :)

  18. ColorKey
    Member
    Posted 1 year ago #

    Did that, but nothing changed, still doing the same thing. Anything else I can try?

  19. artbycrunk
    Member
    Posted 1 year ago #

    i dont know which page your looking at.. but this page http://www.ledlights101.com/ seems like your thumbs are now good to go.. ?

  20. ColorKey
    Member
    Posted 1 year ago #

    Maybe you have misunderstood the issue. Thumbnails are posting, but I am not able to crop the thumbnail to appear the way I want it to. timthumbs seems to be cropping them for me, which is ok sometimes, but other times it doesn't do such a good job.

    If you look at this post, timthumbs has cut off the guys head for the thumbnail. I don't want that to happen, but I have no way of correcting it at the moment.
    http://www.ledlights101.com/?p=143

  21. artbycrunk
    Member
    Posted 1 year ago #

    i dont know if u know this.. but before my solution i couldnt see thumnails on your site.. after u did what i told you thumbnails are visibe.. and as per your example (http://www.ledlights101.com/?p=143)
    this example is on a post page.. what i told you to edit was only the main loop page.. we havent gotten to editing that as yet.. once we are done you will get to where you want to go.. one step at a time. :)

  22. ColorKey
    Member
    Posted 1 year ago #

    Ok I see, I am just being impatient and getting ahead of you here. ok I have the loo-blog.php edit back in place and your right, it is posting the thumbnails automatically. Thanks

    So, what is next?

  23. artbycrunk
    Member
    Posted 1 year ago #

    yeah actually.. i did some more testing on my end and what file edits are done was enough.. now u just need to crop your thumbnail as you want.. and insert it as the featured image..

    see this link.. http://dl.dropbox.com/u/2780608/wordpress_forum/featured_image_crop.jpg
    it is important that u need to crop all image sizes.. and then u will see the featured image like the way you cropped it..

  24. ColorKey
    Member
    Posted 1 year ago #

    Cropping still doesn't work, if I crop the image it shows the cropped version in the media library, but reverts back to the automatic thumbnail immediately in the featured image and on the live site.

    I really appreciate your help so far, timthumbs does seem to be doing a better job of creating the thumbnails than it was, using the whole image rather than cropping it. But, I would still like to be able to crop some of them myself.

  25. artbycrunk
    Member
    Posted 1 year ago #

    try this..
    1. select the image in the media gallery, and say edit..
    2. crop it as you want.. and then click the crop button..
    3. select apply changes to all image sizes.
    4. click the save button.. **it doesnt auto save**
    5. close media library..
    6. go to the desired post that you want to change the featured for..
    7 if featured image exist.. removed featured image..
    8 now tell it to use the newly cropped image from the library..

    it has to work.. it works at my end with the same theme, save settings, same edits.. do u have team viewer?

  26. ColorKey
    Member
    Posted 1 year ago #

    Nope, didn't work, still doing the same thing. Could it be caching the images somewhere? I have cleared my browser cache, but that did nothing. Don't have Team Viewer, sorry. Maybe I have a plugin that is interfering? I don't have that many plugins though. For now I think it's ok. On the few that I want to change I will just create a thumbnail manually. Again, thank you for at least getting timthumbs to do a better job with the thumbnails.

  27. artbycrunk
    Member
    Posted 1 year ago #

    there is a cache that timbtumbs makes.. its inside the theme/functions folder tho i doubt that is the problem.. since we have currently disabled timbthumb from the theme.. though i still find it very strange that your problem is not solved.. is there a way i can use or see your admin panel..? i think thats the only way for a solution now..

  28. artbycrunk
    Member
    Posted 1 year ago #

    sorry, ill get back to you tomm, we can still make this work, its a little late here (2:56AM) in India, need to get some sleep, we will get it done tomm, there is another way around using custom fields, maybe u can read about it.

Topic Closed

This topic has been closed to new replies.

About this Topic