WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 18 months ago

#39736 new defect (bug)

Thumbnail src image link to direct large image, cause low page speed

Reported by: mcky909 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Post Thumbnails Keywords:
Focuses: Cc:

Description

Hi, i have install wordpress and add some images to my post.. but when i test it on page speed check it returns me bad figures you may check http://bit.ly/2k6lXNw. i have used coped images but google take it as large images. I have searched a lot and find out something. related images thumbnail src linked with direct image link you may see through source code: https://postimg.org/image/k71uvbah9/ it is not causing by theme it is causing by wordpress. but i don't know how to fix it

Change History (2)

#1 @flixos90
18 months ago

  • Version 4.7.2 deleted

Hi @mcky909, and welcome to Trac.

Your issue is likely to be related with the image size post-thumbnail (see function reference). It might not be set properly, so WordPress falls back to the default size. Another possibility might be that the theme is using another non existing image size to output the featured image.

#2 @Girishpanchal
18 months ago

Hi @mcky909, and welcome to Trac.

You need to check set_post_thumbnail_size( $width, $height, $crop ); on your active theme functions.php file and update size according to your requirement. If you have a custom image field then you need to update image size using https://developer.wordpress.org/reference/functions/add_image_size/.

One more think that you can use https://wordpress.org/plugins/regenerate-thumbnails/ Plugin which help to reduce image quality/size.

Last edited 18 months ago by Girishpanchal (previous) (diff)
Note: See TracTickets for help on using tickets.