[Resolved] Featured Images from Old Posts are Broken

Home Forums Support [Resolved] Featured Images from Old Posts are Broken

Home Forums Support Featured Images from Old Posts are Broken

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2020893
    Viraj

    Hello Team,

    Featured images from old posts are not showing up. When I checked the image source code for broken images, I noticed that it added dimension at the end of the URL. If I remove those dimensions, images load perfectly.

    For example – src=”https://www.siteurl.com/wp-content/uploads/XXXX/XX/imagename-400×250.jpg”

    If I take out the “-400×250” part, it works perfectly. Also, the URL structures for old and new featured images are different. Kindly guide.

    #2021177
    David
    Staff
    Customer Support

    Hi there,

    In Customizer > Layout > Blog –> Featured Images >>> Archives. What Attachment size do you have selected ?

    #2021222
    Viraj

    Hi David,

    The settings are as shown in the image – https://ibb.co/Fg16LvN

    #2021254
    David
    Staff
    Customer Support

    Ok – so it looks like you’re older posts don’t have various src-set thumbnails.
    Try the Regenerating them with this plugin:

    https://en-gb.wordpress.org/plugins/regenerate-thumbnails/

    #2021447
    Viraj

    Hi David,

    Tried regenerating thumbnails, but the URL structure didn’t change. Is there any other solution?

    #2021799
    David
    Staff
    Customer Support

    Hmmm… what i don’t understand is where is the 400×250 values coming from ? Did you have any custom thumbnail sizes ?

    #2022952
    Viraj

    I don’t recall having any custom sizes for thumbnails. However, we had installed Smush wordpress plugin a long back but I am not sure if it altered anything.

    #2024032
    David
    Staff
    Customer Support

    When you ran the regenerate thumbnails plugin – did it report how may images it updated?

    #2025777
    Viraj

    Yes, it regenerated all 628 thumbnails – https://ibb.co/BzRMLYn

    #2025994
    David
    Staff
    Customer Support

    Hmmm…. in Customizer > Layout > Blog, can you temporarily change the Media Attachment size to Full, and remove the width and height attributes. Then check the img src.

    #2026633
    Viraj

    Dang! That did the trick. I have now resized all the thumbnails using regenerate thumbnails plugin to the size I want.

    Thank you so much David! You have been of great help 😊

    #2027295
    David
    Staff
    Customer Support

    Awesome – glad to hear that!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.