grimox
Forum Replies Created
-
Solved , you have to check Administrator in Count the page views of registered users who are logged in then make some views and the widget will populate.
Thank you for your support.
I am using hard-crop on featured images in my functions.php file like this :function srcset_test() { add_theme_support( 'post-thumbnails' ); add_image_size( 'custom-thumbnail', 635, 230, true ); } add_action( 'after_setup_theme', 'srcset_test' );
I have no other plugin installed, not even Jetpack. No matter how large the image I upload wordpress won’t add srcset for my cropped featured images.
The problem seems to be with hard crop feature because the srcset shows correctly on any other image posted in article (from media for example). If I deactivate the hard crop the srcset shows correctly on the thumbnails too.
I am having this problem in both twentysixteen and twentyfifteen themes with no modification but the hard crop one.Forum: Themes and Templates
In reply to: No srcset for hard-cropped thumbnailsI tested and I am having this problem on both twentysixteen and twentyfifteen themes without any modification but the hard crop one. When I activate hard crop the srcset no longe shows.
The biggest image I have is 1920×1080.You are right, it is something wrong with wordpress not jetpack, I deleted Jetpack completely and there is no srcset on the thumbnails. I will investigate the issue further on wordpress side. Thank you for your time.
If you have any ideea on why wordpress adds no srcset on thumbnails would be greatly appreciated.Thank you for your answer.
I sent you the site URL via contact form. I forgot to mention there the active plugins :
Facebook, Google Authentificator, Jetpack and Loginizer.As an adition to my first post I would like to mention that all the featured images no matter the resolution they are uploaded, have only the 1207w and 1905w srcsets. But the images uploaded with width lower than 1207 in the chrome dev tools > network tab download as 635px width where the images uploaded with width higher than 1207 download as either 1207 or 1905 depending on device screen size.
The problem is strictly with the hard crop feature because if I deactivate that the images get the default wordpress srcsets.