• Resolved nandiniii

    (@nandiniii)


    Hi. I have a blog on Fashionistas theme. I have added the popular post widget in the sidebar but the thumbnail sizes are very small. Please tell me how to increase the size. The link to my blog is https://perkymegs.com

Viewing 9 replies - 16 through 24 (of 24 total)
  • @nandiniii
    Please have a look in:
    wp-content/themes/fashionistas-child/functions.php
    I don’t have access to that file. Can you see any lines with this general format:

    add_image_size ( .......... , 50, 50, ........ );

    If so, post just those lines.

    Thread Starter nandiniii

    (@nandiniii)

    I couldn’t find these line in functions.php file of my child theme. Just these lines are present similar to what you said:

    add_image_size(‘yarpp-thumbnail’, 180, 120, true)

    But these are for yarpp thumbnails at the bottom of the page and not for sidebar widget.

    Moreover, I have observed that sometimes all by itself, it shows correct pictures in chrome browser but not in IE but most of the times its all blurred. The latest one is fine which I posted two days ago but most of all other are blurry. Could there be some solution for it?

    Yes, I see the 6th Mar post is using a 150 thumbnail and is clear, whereas the 4 previous posts are using 50 thumbs stretched to 150, hence blurry.

    Does 6th March correspond in the timeline to after you changed the 50 for 150 in the parent functions.php? If so, maybe the change did work, but only for new posts. Did you regenerate thumbnails after this change?

    Thread Starter nandiniii

    (@nandiniii)

    I did change from 50 to 150 before 6th March. I had run again the regenerate thumbnails plugin after making this change in my functions.php file. May be what you are saying is right. But the problem persists with my older posts. I have also posted another post today which is also fine. Please suggest something to rectify this problem with my older posts.

    They all seem to be 150 at the moment.

    I tested, and changing line 43 in functions.php produced in an instant change in the post thumbnail size. No regenerate thumbnails. I suspect your W3 Total Cache plugin is storing the thumbs with the old values. If the problem persists, you’ll need to delete all cached files and deactivate the cache plugin until this problem is solved.

    I’m confident the approach is working, so restore the line 43 back to what it was with the 2 50’s. Then put this in your child theme’s functions.php. It runs after theme setup and overwrites the 50s. You can update the parent theme whenever necessary.

    You only need the <?php bit if there isn’t one already.

    <?php
      add_action('after_setup_theme', 'modify_thumb_small', 30);
      function modify_thumb_small () {
        add_image_size( 'thumb-small', 150, 150, true );
      }

    If its all working, reactivate the cache plugin.

    Thread Starter nandiniii

    (@nandiniii)

    Hi Iorro!! Finally all my post thumbnails are looking fine in sidebar widget. It just happened by itself the day after I again ran the regenerate thumbnails plugin. I think making the 50s to 150s did the work. Thanks a lot for your help. Can you now please tell me what code to copy in functions.php file of my child theme? Whether the code you mentioned above will work or something else?

    It might have happened by itself after the cached items expired.

    – delete cached pages and deactivate the cache
    – restore the 50s in line 43 in functions.php of the parent theme
    – the post thumbnails should return straightaway to the blurry ones
    – try the code snippet above in functions.php for child theme
    – the post thumbnails should return straightaway to the clear ones
    – no need to regenerate thumbnails
    – reactivate the cache plugin

    Thread Starter nandiniii

    (@nandiniii)

    Hi lorro! Thanks a lot for all your help. Everything is working fine now. Thanks again for your prompt replies.

    Thread Starter nandiniii

    (@nandiniii)

    Since the issue is resolved now, I am marking this topic closed.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Post thumbnail size in sidebar widget’ is closed to new replies.